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 2 remixes fullscreen
remix of d/7285 by u/aemkei

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).

  • u/aemkei
    5 symbols: x.font="3em'";x.fillText("ᴀscii",C=0,40);for(d=x.getImageData(t*3,Y=t*120%82,2,D=3).data;D<23;)C+=!d[D+=4];x.fillText("Xwo=^ "[C],t*54,Y*22)
  • u/magna
    ASCI version: d/8698
  • u/magna
    3 chars shorter, using existing character set for shading: d/8699
  • u/aemkei
    128 bytes: x.fillText(a=x.font="3em' ",C=0,40);for(d=x.getImageData(t*3,Y=t*120%82,2,D=3).data;D<19;)C+=!d[D+=4];x.fillText(a[C],t*54,Y*22)
  • u/katkip
    #text

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)