dwitter.net | LimeLaser (249)

+ 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: #Opposites
show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
136/140


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

  • Curved Geometry Drawer
  • u/LimeLaser
    This uses the bezierCurveTo method with different values to see what shapes it can draw.
  • u/marmph
    slap a few sines and cosines together and BAM ART

Please log in (or register) to comment.

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

  • 99 Accelerating Particles (thank you qm3ster)
  • u/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) {

}//
139/140


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

  • 64x36 20FPS Random Sampling Renderer
  • u/LimeLaser
    My attempt to implement per-pixel rendering at interactive rates. Using a Linear Congruential Generator, the pixels to render are chosen psuedo-randomly. It takes 3 frames to render all 2304 pixels, so the actual FPS is 20.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
123/140


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

  • Grid Spiral

Please log in (or register) to comment.

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

  • Cool Spinning Glitch
  • u/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.
  • u/katkip
    its because drawimage

Please log in (or register) to comment.

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

  • Long, Recursive Corridor

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/12799 by u/Jezza

function u(t) {

}//
125/140


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

  • Venus Flytrap Trails

Please log in (or register) to comment.

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

  • Infinite Snowfall (Which Goes Right Because Modulo)

Please log in (or register) to comment.

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

  • Curved Hallway

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

  • Fade to Black / Persisting Values POC (CPU Intensive)

Please log in (or register) to comment.

Loading...
Next page