Computer Science Canada random colours |
Author: | 85882 [ 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! |
Author: | Blade [ Fri Jun 13, 2003 9:46 am ] |
Post 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)) |
Author: | 85882 [ Fri Jun 13, 2003 10:07 am ] |
Post subject: | |
Thanks so much! ![]() |
Author: | Andy [ Fri Jun 13, 2003 10:36 am ] |
Post subject: | |
or better yet drawfill(maxx div 2, maxy div 2, Rand.Int(0,255),Rand.Int(0,255) |