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.
Hey, some of your new posts have infinite while loops and keep crashing my browser tab. 797{1,2} c.width=1920 h=0; i=50; while (h<=301){ if (h==300)i=-50; x.fillRect (600, 500, 300, h+=i) } h will never reach 301, it will hit 300 and then subtract i, add it again, and loop infinitum. I'd suggest deleting these post just to save others heart ache.
Sorry, slightly wrong, it will make i=-50, which causes it to bounce, still crashing my tab tho.
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)