dwitter.net | LimeLaser (106)

+ 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 1 remix 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).

  • Load older comments...
  • qm3ster: 115 r=x=>x*Math.random() p=t?p.map(([a,b]=[r(1920),r(1080)])=>[a+6-r(12),b+4-r(8),x.fillRect(a,b,1,1)]):[...Array(999)]
  • qm3ster: 115 r=x=>x*Math.random();p=t?p.map(([a,b]=[r(1920),r(1080)])=>[a+6-r(12),b+4-r(8),x.fillRect(a,b,1,1)]):[...Array(999)]
  • qm3ster: 112 r=Math.random;p=t?p.map(([a,b]=[1920*r(),1080*r()])=>[a+6-12*r(),b+4-8*r(),x.fillRect(a,b,1,1)]):[...Array(999)]. How do I delete comments?

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

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

}//
147/140


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

  • LimeLaser: I'm not really sure why it does this, but I got this effect while trying to rotate and draw the canvas onto itself.
  • katkip: its because drawimage

Please log in (or register) to comment.

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

  • LimeLaser: Infinite Snowfall (Which Goes Right Because Modulo)

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

  • LimeLaser: 99 Accelerating Particles (thank you qm3ster)
  • LimeLaser: I have been hoping to make a particle system that persists individual positions and velocities for a while now. With the code golfing qm3ster has done, I can finally do it!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
142/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/12799 by u/Jezza

function u(t) {

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

  • LimeLaser: Fade to Black / Persisting Values POC (CPU Intensive)
  • katkip: It is satisfying to watch

Please log in (or register) to comment.

Loading...
Next page