Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 1st, 2024, 11:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: for ( ; ; ) question
PostPosted: June 19th, 2007, 2:31 pm 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
If i put this code

for (I=1;I<8;I++)
there will be 8 loop
can I change as example the color of the text each loop with different color?


Top
 Profile  
 
 Post subject:
PostPosted: June 19th, 2007, 4:31 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
yes
The basics for changing a TextObject colour is

MyColour=RGB(Red,Green,Blue)
TxtObject.SetColour(MyColour)

OR
TxtObject.SetColour(Red,Green,Blue)

where Red/Green/Blue is an integer 0-255.
(255,0,0) pure red, (0,255,0) pure green---etc

You could then put an 'if' statement inside the loop to set MyColour to a different colour for each loop.
In this way, you can define the precise colour for each loop of the count.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group