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 fullscreen

function u(t) {

}//
134/140


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

  • A lonely fish

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
114/140


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

  • u/BuRRak
    Golfed down to 83 characters: c.width|=v=500 for(i=0;i<100;i+=.3) x.fillRect(S(3*t*i)*v+960,S(2*t*i)*v+540,10,10)
  • u/Galaxtone
    @BuRRak SyntaxError: Unexpected token for
  • u/BalintCsala
    I guess that should be a new line

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

  • Best brainfuck interpreter I could do in 140 characters, super bad code. You need to change the Q variable to your code for it to run. There are no loops or an input, but the output works just fine.
  • u/BuRRak
    The Q variable declaration is there just so you know what to edit, it could be left out as it is not used anywhere in the code again
  • u/BuRRak
    The output also throws a 0 before every other output

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen

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

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

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

  • A worm? A chinese dragon? For sure the ugliest code I ever wrote
  • u/BuRRak
    Ugly code is the key in code golfing, isn't it?
  • u/sirbo
    it's the key for running code :)
  • u/zanella
    You can replace t<1 with !t. Yay, code golf!
  • u/BalintCsala
    Or simply put the initialization after the dweet }{initialization here

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

  • Isometric Islands

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
127/140


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

  • Underwater lighting (wip)

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

  • Waves with foam!

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

  • Walking boxes

Please log in (or register) to comment.

Loading...
Next page