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.
Thanks! Here's an ugly 140b version just so you can see how it works... with(x)for(c.width=i=-6;++i<7;stroke())lineTo(R+=90*S(a=i*111+t),Y=99+20*C(a)),arc(R+Y/4*S(i/2+t*5),Y-9*C(a/4),Y/16,0,3),rect(R=160,R,i*6,8)
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)