dwitter.net | ETHproductions (168)

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

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

  • Load older comments...
  • katkip: This is awesome
  • katkip: uncompressed: for(c.width&=i=-17;i++<13;)for(j=-17;j++<13;x.fillRect((15+q*(j-i))*64+S(t*4)*d,(15+q*(i+j))*40+C(t*4)*d,9,9))Z=i>0&j>0?0:j<i?j:i,X=j-Z,Y=i-Z,q=-(X<5&Y<5&-Z<5)|1,d=q*4*(X+Y-Z-6)+24
  • katkip: #illusion

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

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

}//
137/140


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

  • ETHproductions: If there's a short way to move the entire drawing a few pixels, it would allow quite a bit more room for messing around...
  • joeytwiddle: Bring out q to shave off two: s=7,x.drawImage(c,q=t?0:a=[l=1],-s)
  • katkip: WOW! AWESOME

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
127/140


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

  • ETHproductions: Ulam Spiral, golfed and modified to add a prime each frame

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
142/140


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

  • ETHproductions: Hacker typer, but the cursor resets when a key is pressed. Had to sacrifice the reset at the end...

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • ETHproductions: Down to 117, looks nicer on the canvas too... Still no room for typos though!

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

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.

Loading...
Next page