dwitter.net | alien (1671)

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

}//
140/140


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

  • mildlybean: Move your mouse over the canvas. Also, try changing 64-1 to 64

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/10979 by u/cantelope

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

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/9584 by u/yonatan

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
96/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/9505 by u/alien

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
remix of d/2842 by u/alien

function u(t) {

}//
148/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 1 remix fullscreen

function u(t) {

}//
144/140


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

  • nabbydude: Golfed my Langton's ant enough to fit in some scaling
  • Load older comments...
  • BalintCsala: @alien I think that gets the image data at the current position and if it's red, makes the fillStyle black and vice-versa
  • nabbydude: @alien @BalintCsala is right, x.blahblah is 0 if the pixel is black and 255 if its red, inverting it makes 0 into 1 and 255 into 0, and then we multiply by w because its a big number (>255) to make the color more visible
  • nabbydude: @alien @BalintCsala is right, x.blahblah is 0 if the pixel is black and 255 if its red, inverting it makes 0 into 1 and 255 into 0, and then we multiply by w because its a big number (>255) to make the color more visible

Please log in (or register) to comment.

Loading...
Next page