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.
tried same with function.. still 140 ;) F=(e,d,a,b)=>x.fillRect(a,b,d,e);for(i=768;i--;x.fillStyle=hsla(${i+99*S(f)},99%,50%,.5)i<216?F(5,2e3,0,5*i,f=t*2):F(g=1080,5,5*i-g,0,f=t)
lol and now I wonder why I didnt just do this from beginning.. for(i=768;i--;x.fillStyle=hsla(${i+99*S(f)},99%,50%,.5)i<216?x.fillRect(0,5*i,2e3,5,f=t):x.fillRect(5*i-1080,0,5,1080,f=t*2)
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)