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.
i had to golf this code to get the original d/19898 under 140, but lost the "focal point" effect achieved here. In need of a shorter way to compute the (euclidean) distance from the focal point (defined by "d" in the code).
please excuse my poor etiquette for i have now learned about code blocks and replacing EVAL with THROW to display compressed code, and the Discord for chat : )
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)