dwitter.net | LimeLaser (85)

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

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

show FPS hide FPS share fullscreen

function u(t) {

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

}//
119/140


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

  • LimeLaser: I tried to get a decent rectangular-color-fill distribution by allowing negative widths and heights.
  • joeytwiddle: Ah nice approach, to avoid the top and left edges feeling lonely

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

  • LimeLaser: Ordered Dithering Of Red-Green Gradient
  • LimeLaser: Simulates a 6-bit-per-channel color scheme. The "d" variable represents an entry in a Bayer matrix; setting d=0 will show non-dithered 6-bit-per-channel gradient.

Please log in (or register) to comment.

Loading...
Next page