random colours
Author |
Message |
85882
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Blade
|
Posted: 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)) |
|
|
|
|
![](images/spacer.gif) |
85882
|
Posted: Fri Jun 13, 2003 10:07 am Post subject: (No subject) |
|
|
Thanks so much! ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: 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) |
|
|
|
|
![](images/spacer.gif) |
|
|