Dwitter

+Create 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.

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

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.


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

  • FireFly: Interactive demo! Move your mouse to change colour!

Please log in (or register) to comment.

remix of #1053 by paberr

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

  • Kalanchoe: wow! here's a 103 byte version if you want to add color or something: w=1920;h=1080;f=()=>Math.random()>.5?10:-10;t?x.fillRect((b+=f()+w)%w,(g+=f()+h)%h,10,10):(b=w/2,g=h/2)
  • iverjo: Looks like this dweet is getting "awesomed" a lot due to an exploit in another dweet

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.


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.


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

  • FireFly: Raycasted rotating sphere with UV-mapping!
  • Load older comments...
  • mxfh: you can do M.sqrt() with ES6 power operator as **.5 should yield a net gain of 2 chars
  • FireFly: Oh right! I haven't gotten used to it yet since I'm on Fx51, which doesn't seem to support ** yet. Thanks!
  • FireFly: Oh, and also thanks for all the positive responses, everyone :)

Please log in (or register) to comment.


function u(t){

} //
143/140

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

  • Load older comments...
  • michelinux: It's probably because on Windows the new line takes 2 characters ('\n\r'). Use ';' instead of new line and you should have a more consistent behaviour.
  • andy: still weird, i don't have any windows machines.
  • SpecialAgent: the simplicity of that zoom blows my mind, great work!

Please log in (or register) to comment.

Loading...
Next page