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.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Food
show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
135/140


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

  • 6 spirals made of [object Window] (if you look closely) #spiral

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

  • HAL's eye

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

  • Vortex ring

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen
remix of d/13938 by u/WasifBoomz

function u(t) {

}//
80/140


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

  • Golfed a bit

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

  • u/sigveseb
    cool!
  • u/sfz
    wtf is going on here?!
  • u/FireFly
    The string embeds a tiny bitmap which is simply repeated :)
  • u/5Mixer
    This is an awesome idea! I wonder what else you could do with using strings to encode more complex(?) data. Interesting.
  • u/PiggyClone205
    When I read complex, I immediately thought of maybe importing other javascript and cheating a bit.
  • u/katkip
    #invaders

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
131/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

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.


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

  • Microscopic bugs

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • the mountain spins both ways

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

  • d/25779 randomized arrangement in taupe
  • Show more comments…
  • u/eyaler
    i love it, but noob question - the decoded string is the same length. so why encode?
  • u/eyaler
    z=.61+Math.random()/1e3;for(m=t?0:2e4;m-->1e4;x.fill())x.beginPath(x.fillStyle=R(j=m**(g=m%z),j*.8,j*.75,q=S(m)**4)),x[q>.5?'arc':'rect']((m%13-.5)*160,(j|0)%9*135,40/q,j,j-z/g)
  • u/taupelink
    thank you! i think it's 177 chars when uncompressed
  • u/tomxor
    The funny thing is that it's actually much much longer when you count in bytes. The uncompressed is 178 bytes because it's pure ASCII and the compressed is 319 bytes due to all the multi-byte unicode. (you can get the UTF8 encoded byte length using new TextEncoder().encode('code').length

Please log in (or register) to comment.

Loading...
Next page