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.
How about something like i=0;for(m in x)u[i++]=m;x[u[34]](512,512,512,512) Shortens every call to six chars at the cost of 24... Maybe shorter if you call globalCompositeOperation and some shadow methods too hah.
Good one, I was also thinking about the possibilities of something like an.. uhh, a tiny bytecode interpreter? take a string and convert it to function calls and parameters somehow.
for(p in x)this[p[0]+p[6]]=p sets up shortcuts on this so you can do x[gC] instead of x.globalCompositeOperation (from d/10842)
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)