dwitter.net | FireFly (739)

+ 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 1 remix fullscreen
remix of d/24124 by u/FireFly

function u(t) {

}//
129/140


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

  • u/FireFly
    I've stared at this for too long... don't think I can get it below 146 decompressed (with Z inlined). Would be rad if we could squeeze those last characters out though and get it down to 140 without compression :)
  • u/tomxor
    I have an imperfect 142
  • u/Agnes
    This is 145 but I don't remember if the new indexing is actually shorter or not than yours: for(i=w=128;i--;x.fillStyle=R(i%2?x.fillRect(X=i%16*64,Y=i*8&-w,m=X+Y&w,m)|w:x.fillText('♜♞♝♚♛♝♞♜♟ '[Y++%7?++Y%5?9:8:i/2%8],X,Y+w)))x.font="4cm'"

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/24093 by u/TGY

function u(t) {

}//
137/140


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

  • u/pavel
    font='4cm"'
  • u/FireFly
    ohh good one, didn't know about the font-family name trick
  • u/TGY
    now we need to combine 2 dweets into single XD
  • u/DataMeta
    fit them together with compression, but would be more interesting to jam it into 140 :)
  • u/FireFly
    I can do a full chess board in 151c currently, but it *would* be really satisfying to fit it into the 140c without compression tricks indeed

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/3078 by u/FireFly

function u(t) {

}//
130/140


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

  • Animated sprite silhouettes! (crawling)
  • u/FireFly
    Adding a #time dimension to an old dweet of mine, by rethinking it a bit :)
  • u/rep_movsd
    Amazing
  • u/rep_movsd
    Looks like some of your earliest dweets dont render anymore on the new dwitter shim code
  • u/FireFly
    hmm, they seem to work fine for me :o (in Firefox)
  • u/rep_movsd
    Must be Chromium issues then

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
92/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.


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

  • Spritegen! Generates 48 random sprites each time the dweet is run (make a change to rerun the dweet)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

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

  • Rainbow banners!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/3005 by u/FireFly

function u(t) {

}//
137/140


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

  • Ripples! With proper quads instead. Add +Z*X-Z*16 after X*60 for perspective projection too (brings it up to 146)
  • u/FireFly
    Another byte can be saved with with(x), but this causes a fair bit of slowdown for me. Thanks for some golfing tips from qfox and others on the jsgolf slack :)
  • u/cantelope
    can't stop watching. def in my top 10 favs
  • u/iverjo
    Very impressive!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
139/140


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

  • Ripples!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/2973 by u/FireFly

function u(t) {

}//
125/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.

Loading...
Next page