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.
nice. the lack of perspective is an opportunity ;) i have this for(c.width|=i=6;i--;x.fill())for(x.beginPath(j=4);j--;x.fillStyle=`hsl(${60*i},99%,50%,.3`)x.lineTo((w=960)+S(p=(A=Math.atan2)((a=[S(p=1.57*j+.79),C(p),.7])[i%3]*(l=i<3?-1:1),a[(i+2)%3]*l)+t)/(Z=(C(p)+3)/w),540+a[(i+1)%3]*l/Z)
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)