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.
looped version =>c.width|=0,x.scale(100,100) for(i=(t%=6)*5|0;i--;x.fillRect(T=40-t*13,4.9,1,.2))for(j of[1,-1])x.fillRect(z=i+t*5%1,5+j*(z>T)*(z-T)/5,-.4,j)
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)