Thread: Color Cycling
View Single Post
  #4  
Old 08-02-2001, 05:10 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
You can already do this....WITH YOUR SKILL!!!
^_~

You just need to create a function by which
blue decreases from 1 to 0 while red increases from 0 to 1
then red decreases from 1 to 0 while green increases from 0 to 1
then green decreases as blue increases
then repeat

It's not real hard, unless you wanna do it efficiently.

See, here's one:
NPC Code:

for(this.i=0;this.i<3;this.i++){
for(this.n=0;this.n<1;this.n+=0.125){
if(this.i<1) setcoloreffect this.n,0,1-this.n,0.5;
else if(this.i<2) setcoloreffect 1-this.n,this.n,0,0.5;
else setcoloreffect 0,1-this.n,this.n,0.5;
sleep 0.05;
}
}



See how that grabs yeh.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote