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.
Would be nice if dwitter had so you could post an example based on a dwitt without posting a new one. for example on this one I would post.. c.width=2e3;for(y=1500;y--;)a=y%29,b=y%52,x.fillRect(b*40,a*40,C((b*a)/8+t*2.5)*40,S((b-a)/7+t*3)*40)
Good idea, I've been toying with the thought for a while. What's your take on how it should look / work in practice? Allow comments to be a dweet that can be opened and closed?
one way would be to have like a offspring dweet button... when you use it the code will be placed in a dropdown list under the original dweet.. not sure how it should look like but the original show allways first and then you can select an edited version. (keeps comments clean)
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)