Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 random colours
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
85882




PostPosted: Fri Jun 13, 2003 9:29 am   Post subject: random colours

I make a quiz, and each question should have a different colour. But I want that it uses a random colour. Is that possible?

Thank You!
Sponsor
Sponsor
Sponsor
sponsor
Blade




PostPosted: Fri Jun 13, 2003 9:46 am   Post subject: (No subject)

yeah, colours can be called by random integers. so just stick a random integer in the colour spot:
ie: drawfillbox(100,100,200,200,Rand.Int(1,255))
85882




PostPosted: Fri Jun 13, 2003 10:07 am   Post subject: (No subject)

Thanks so much! Very Happy
Andy




PostPosted: Fri Jun 13, 2003 10:36 am   Post subject: (No subject)

or better yet drawfill(maxx div 2, maxy div 2, Rand.Int(0,255),Rand.Int(0,255)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: