dwitter.net

+ New dweet
function u(t) {
} //
122/140


Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)


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.
show FPS hide FPS share fullscreen
remix of d/9345 by u/yonatan

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Should we just declare a 184 byte limit and be done with all this compression business?
  • u/cantelope
    For some time, there has been https://codegolf.tk, which has categories for 140, 512, and 1024 byte dweets. Full disclosure: I created the site.
  • u/f8f82804
    I'm with @cantelope. If you resort to compression, that's a choice.
  • u/aleamb
    amazing dweet!
  • u/yonatan
    source: for(x[f='fillRect'](0,0,c.width=i=1e3,i);i--;x[f](S(t)*199+S(i)*m+500+S(z=i**.5)*m+m*S(t)*1.5,C(t)**2*99+C(i)*m+200+C(z)*m,z,z))m=i/14,x.fillStyle=hsl(30,35%,${(C(9+i-S(t))+1.5)**5}%`

Please log in (or register) to comment.

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)