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.
Awesome! I managed to shorten it down to 129 if you want to add something to it: v=160;s=20;for(i=60*v;i--;l=(i%v))m=(i/v)|0,k=1+S(C(l/15)/C(m/17)+t*4),x.fillStyle=R(n=k*v+m*2,n+m,n+k*v),x.fillRect(l*s,m*s,s,s)
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)