
-----------------------------------
85882
Fri Jun 13, 2003 9:29 am

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!

-----------------------------------
Blade
Fri Jun 13, 2003 9:46 am


-----------------------------------
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
Fri Jun 13, 2003 10:07 am


-----------------------------------
Thanks so much!  :D

-----------------------------------
Andy
Fri Jun 13, 2003 10:36 am


-----------------------------------
or better yet drawfill(maxx div 2, maxy div 2, Rand.Int(0,255),Rand.Int(0,255)
