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.
c.width+=0 for(i=10;i--;)x.fillStyle=R(125,i*25,200,.75),x.fillRect(i*100+T(t*(i/10))*100,S(t*2)*100+250,100,100) -- your code can be shortened down to 113 bytes. In this example, it might not mean much, but for bigger dweets shortening code like this is crucial. If you'd join our discord chat, we could teach you some more tips and tricks like these ;)
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)