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'm a newcomer, but codegolf community must decide whether they like to count code size in UTF-16 characters, UTF-16 code units or bytes (or bits, since b and B are different units)
u/f8f82804 unicode chars can be 16 or 32-bit (only). this bug is on front, not on server. or stated other way, this bug is on codegolf community policies.
speaking about bugs, this code actually counts UTF-8 chars (as they are represented in the page/editor). one can see this matter with the ௸ symbol (it's 2B long in UTF-16 but 3B in UTF-8). parameter 'utf-16' in TextEncoder is obsolete, see this note here https://developer.mozilla.org/en-US/docs/Web…
*** this code actually counts bytes of the string encoded with UTF-8 (html context). d/11906 counts bytes of the string encoded with UTF-16 (javascript context). both count Unicode chars (or *code points*) right with Array.from(code).length. this is different from counting *code units* (16-bit unsigned elements).
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)