dwitter.net | kchplr (3704)

+ 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/1416 by u/kchplr

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

  • I would be lying if I said this is what I had in mind
  • u/Flexi23
    But no-one could look into your mind and compare. wait. no.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
sfz
remix of d/1479 by u/sfz

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

  • Snowflakes with gravity acceleration and parallax
  • u/sfz
    err, depth that is, small ones fall slower as if they're further away :P
  • u/joeytwiddle
    #snow I think it's fair to call that parallax, just vertical

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 2 remixes 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/123 by u/icecuber

function u(t) {

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

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

function u(t) {

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

show FPS hide FPS share 1 remix fullscreen

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

Please log in (or register) to comment.


function u(t) {

}//
133/140


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

  • Spent some time trying to compress it, but forgot to remove the Y=y. Should be 129 bytes instead of 133.
  • u/sigveseb
    if you do z=99.. instead of z=100.. you can get an extra byte!
  • u/kchplr
    aah, indeed thanks!
  • u/kchplr
    Just figured out the last statement in the for loop can also be placed in the loop body to save two more bytes. I'm new to this codegolfing thing...
  • u/kchplr
    Actually, the first statement, not the last..

Please log in (or register) to comment.

Loading...
Next page