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.
People of twitter are generally nice and well behaved, and roasting or trolling is not really in their DNA. Yuor code is fine bro, it's short - so no need to golf it. only thing I would do to up the readability is to use Template literals, in sted of concatinating the hsl string.
Welcome to dwitter, we all family here,, bad code is code that doesn't work, your next step is to challenge yourself to golf this down, have a look around a prod at others dweets.
sorry i had to delete your test because it was abusing the console output and making it hard to scroll to other dweets or leave comments! you are welcome to post another one that only displays a portion of the result or displays it in the dweet window
u/KilledByAPixel I'm not sure what: example with long console message really need was delete, maybe was better enable watch per click like in " h/nsfw " tag or make "arhiveLike" tab for something good but what for some reason not needed in main section ; Sometimes after delete: some info or some idea becomes lost... But today i just try recover d/26687 probbally has been throw c.parentElement.parentElement.innerHTML or throw c.parentElement.parentElement.outerHTML ~_^
heh. i'd like to point out that hacking this platform was a big reason many of us remained interested to begin with. kudos for discovering the long throw bug \o/. i see this as an easter egg, not an abuse. @killedbyapixel, maybe instead of deleting the dweet, a bigger move would have been to patch the platform via a github PR. (full disclosure, I am a dwitter.net dev & admin)
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)