background
Author |
Message |
dark-Sniper
|
Posted: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: 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 |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
|
|