dwitter.net | Xor (860)

+ 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.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Opposites
show FPS hide FPS share fullscreen
remix of d/13495 by u/pavel

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

  • Show more comments…
  • u/13thptr
    awesome, looks like the ball escapes without breaking everything after a while though. will read the explanation more thoroughly.
  • u/pavel
    No chars left for bounds checks! It freaks out with negative positions. If I find a way to shorten I will add bounds.
  • u/ersagun
    I need to read and reread that explanation on a loop until I get this. This is incredible.
  • u/Qwitter
    Just wow.

Please log in (or register) to comment.


function u(t) {

}//
105/140


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

  • Supernova ☀

Please log in (or register) to comment.

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.

show FPS hide FPS share fullscreen
Xen
remix of d/8508 by u/firegodjr

function u(t) {

}//
112/140


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

  • Forbidden-Stairway2: Wrath of Hue

Please log in (or register) to comment.

remix of d/5293 by u/Xen

function u(t) {

}//
77/140


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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/1480 by u/magna

function u(t) {

}//
138/140


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

  • Pair programming nightmare

Please log in (or register) to comment.

You've reached the end.