TNT Basic Forums > Programming Q&A
random colours
< Last Thread     Next Thread >
Thread        Post A Reply

11-28-2002 12:36

Posted by:

Click Here to Email mark_667   Find more posts by mark_667

I see from some of your examples that colours can be made by typing in numbers in TNT. So is it possible to make a random number generator that will output a string of numbers that can be represented by a colour?
Thanks in advance for your help.

11-28-2002 19:10

Posted by:

Find more posts by jamie

random color

If I understand you correctly i think you would do something like this:

r= Random (0,255)
g= Random (0,255)
b= Random (0,255)
colour = Make Colour (r,g,b)

'colour' would end up being a random RGB color.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.