Dwitter | wclang (33)

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

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

function u(t) {

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

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

}//
141/140


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

  • wclang: Mouse over to change how tightly the Archimedean spiral is wound,.
  • wclang: (Another application of the mouse code I saw from FireFly, #1629.)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
143/140


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

  • wclang: Move the mouse around to change the patterns
  • wclang: This borrows from Firefly #1629 again for capturing mouse movement, and combines my previous two dweets.
  • iverjo: #interactive

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
130/140


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

  • wclang: Mouse over the screen; a red square follows the mouse.
  • Load older comments...
  • wclang: There's a magic number, 3.3, that keeps the square under the mouse. This doesn't work in full-screen mode (the square is offset from the mouse).
  • wclang: I should mention I learned that mouse events are accessible from FireFly #1629. (I had to figure out what was going on in that dweet, so I could get X and Y off of the mouse.)
  • iverjo: #interactive

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

You've reached the end.