u(t) is called 60 times per second.
t: Elapsed time in seconds.
S: Shorthand for Math.sin.
C: Shorthand for Math.cos.
T: Shorthand for Math.tan.
R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5)
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
143b and still looks ok... ->for(c.width|=j=9;j--;)for(i=4,x.moveTo(u=500*(T(t/4+j)),v=u/i+9*C(t));i--;x.lineTo(u+j+v*C(a=S(5*t+S(j)))*S(1.4*i),v+v*(a/9+i%2*S(a))))x.fill()
139b version ->for(c.width|=j=9;j--;)for(i=4,x.moveTo(u=555*(T(t/4+j)),v=u/i+9*C(t));i--;x.lineTo(u+j+v*C(a=S(5*t+S(j)))*S(1.4*i),v+v*(i%2*S(a))))x.fill()
Thanks, Im not going tell how long it took me to figure that out though :-)
u(t) is called 60 times per second.
t: elapsed time in seconds.
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
S: Math.sin
C: Math.cos
T: Math.tan
R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)