Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 background
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dark-Sniper




PostPosted: Fri Apr 18, 2003 3:07 pm   Post subject: background

dumb question
how do you change your background gradually. For example going from red to green in like 10 secs or something like that

Yes i am a n00b Razz
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Fri Apr 18, 2003 3:42 pm   Post subject: (No subject)

here is an example of how to do it with RGB and draw.fillbox (i did not use colorback becuse it was pissing me off)

code:

View.Set("offscreenonly")

for i : 1 .. 200 by 10
   cls   
   RGB.SetColor (1, 100,i,0)
   Draw.FillBox (0,0,maxx,maxy,1)   
   View.Update
   delay(1000)
end for


1st the RGB.SetColor chages what color 1 is equalte to.
this lets you strat with green and slowy add red intell you get to the color you whont. (for more info on RBG look up RBG.SetColor in turing's help thingy). the the draw.fillbox maks a box the size of the scren and is set to the color that is desigeted by the RBG thingy.

i used view.update to get ride of any flickering. (note that this only wrokings in turing 4.X)

if you have any question just post Wink
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: