dwitter.net | magna (3923)

+ 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 fullscreen
remix of d/2678 by u/jczimm

function u(t) {

}//
132/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
remix of d/2611 by u/magna

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

  • Refactoring to make code more readable (!)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/2597 by u/magna

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

  • Filled Truchet tiles

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/2533 by u/Jenky

function u(t) {

}//
111/140


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

  • Shorter, but inefficient WebGL setup

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/2462 by u/magna

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

  • Infinite Worlds

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

  • Octobuffering Infinite Balls

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/2385 by u/magna

function u(t) {

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

  • Gradient from nothing
  • u/sigveseb
    Can't explain that!
  • u/magna
    PNG header FTW
  • u/iverjo
    Wait what? This needs an explanation :D
  • u/magna
    @iverjo I export the empty canvas as a PNG image. The PNG file has non-zero bytes (because it needs to have a header and a bare minimum content to encode the empty content) that I directly use as RGBA values for the canvas image data (the pixel array).
  • u/magna
    #glitch

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

  • Heart tissue
  • Show more comments…
  • u/SockTaters
    It's a little faint, but I can see it breathing
  • u/magna
    What browser y'all using? I see it with chrome both on mac and win.
  • u/tomxor
    I can see it on Linux using Firefox@30 FPS and Chrome@15 FPS. I suspect on a phone it's going to be single digits with Chrome so it's going to take a whlie to appear.
  • u/joeytwiddle
    I'm using Firepants on a BlackberryPi in 2076, looks fine here

Please log in (or register) to comment.


function u(t) {

}//
65/140


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

  • smoller TV static
  • u/magna
    anyone care to throw in a PRNG to replace Math.random()?
  • u/lewdev
    Nice, you had me beat by 1b with i++>>8!

Please log in (or register) to comment.

Loading...
Next page