PDA

View Full Version : Color tween


Bash321
01-14-2006, 05:23 PM
I can stare at it for a loooong time:ko:, try changing some of the settings...fun

w = 600
h = 400
sat = 127
this.onEnterframe=function(){
clear()
r_R_A -= .152
r_R_B -= .175
g_R_A -= .01
g_R_B -= .054
b_R_A -= .045
b_R_B -= .178
rA = Math.sin(r_R_A)*sat+128
gA = Math.sin(g_R_A)*sat+128
bA = Math.sin(b_R_A)*sat+128
r_B = Math.sin(r_R_B)*sat+128
gB = Math.sin(g_R_B)*sat+128
bB = Math.sin(b_R_B)*sat+128
col = bA << 16 | rA << 8 | rB
beginFill(col,100)
lineTo(w,0)
lineTo(w,h)
lineTo(0,h)
lineTo(0,0)
}

Seb Hughes
01-14-2006, 07:42 PM
Pretty boring, if you wanna win, be creative. And if you want i always accept big bags of money.

nathan99
01-15-2006, 02:36 AM
...

ActionScript Code:
/*no comments*/

...
When you reply, keep it nice and helpful. No-one likes pointless or rude replies.

hybrid101
01-15-2006, 03:58 AM
i don't see anything in flash when i copied the code.(flash mx 2004 pro)

Bash321
01-16-2006, 12:31 PM
hmm... try putting an endFill() function at the end.