dwitter.net | katkip (33316)

+ 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) {

}//
133/140


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

  • JavaScript console: input value (expressions, commands, function/variable names) + <ENTER>

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

  • x.fillRect(0,0,q=2e3,q);if(!t){w=[];for(i=q;i--;)w.push({a:i/321,d:500-i/9})}x.globalAlpha=.1;for(o of w){x.clearRect(960+S(o.a,d=o.d)*d,(z=540)+C(o.a)*d,9,9),o.d-=q/d;(d<0?-d:d>z)?o.a+=o.d=z:q}

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

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

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

show FPS hide FPS share fullscreen
remix of d/19060 by u/aaaaaz

function u(t) {

}//
126/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) {

}//
139/140


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

  • BLM

Please log in (or register) to comment.

show FPS hide FPS share 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).

  • Text editor with auto-save. Type and reload (or come back later). Your edits are stored in this Dweet.
  • u/rodrigo.siqueira
    Shortcuts: control-b (bold), control-i (italic), control-u (underline). You can even paste html in this Dweet.
  • u/katkip
    wow
  • u/rafroller
    So cool ! Nice use of localStorage :)
  • u/sigveseb
    Cool, didn't know that you could do bold, italics etc like that in contenteditable

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

  • Sorting the four fours numbers! #waitforit #math #puzzle. This is an automatic program that will throw the list of natural numbers written as javascript expressions that eval that number! To view the code, replace eval with throw
  • u/katkip
    example print: 1 = 44/44 2 = 4/4+4/+4 3 = 4+~44%4 4 = ~44%~4^4 5 = 44%4-~4 6 = 44/4+~4 7 = 44/4-4 8 = 4+4//-/^*4^*4 9 = 4/4+4+4
  • u/KilledByAPixel
    nice!
  • u/katkip
    looks like it gets stuck at 17
  • u/katkip
    17 = 4^4*4-~4 18 = 4-~4+4-~4 19 = ~-4^~-4*4+4 20 = 4&4^4*4 21 = 4/4-~4*4
  • u/katkip
    nvm. stuck at 22

Please log in (or register) to comment.

Loading...
Next page