dwitter.net | AnnanFay (3577)

+ 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.
Theme challenge of the month: #candy
show FPS hide FPS share fullscreen
remix of d/7094 by u/AnnanFay

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

  • Neon city wakes up

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

  • CHOO CHOO! Let it run to see all the tracks. :)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
jh

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

  • Tribute to Strange Crystals
  • Show more comments…
  • u/jylikangas
    Thanks! Improved version: c.width=W=350+C(t)*150 with(x)for(i=17;--i;fill())globalAlpha=.2,arc(X=W/2+i*S(t/3)*4,70,450/(Z=i-t*8%1),9,13)&rect(X-(z=150/Z),70+z,z*2,7)
  • u/iverjo
    #tunnel
  • u/sigveseb
    #witchcraft
  • u/pavel
    Even better with(x)for(c.width=W=350+C(t)*150,i=17;--i;fill(rect(X-z,70+z,z*2,7)))globalAlpha=.2,z=150/(i-t*8%1),arc(X=W/2+i*S(t/3)*4,70,3*z,9,13)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
91/140


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

  • click to turn
  • u/fujimotos
    Changing the callback to "x.fillStyle=hsl(${d++*25},50%,50%)" turns it into an abstract art generator :)
  • u/yonatan
    swapping PI/2 for PI/5*6 gets you pentagrams :)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7492 by u/AnnanFay

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

  • Dragon Curve - filled version

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

  • Dragon Curve
  • u/AnnanFay
    This looks great when full screen otherwise the filled version will look much better d/7493

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/6692 by u/AnnanFay

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

  • Some site changes broke the original so here's an improved version. Numbers at the end are pairs of Dweet ID and offset.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7263 by u/AnnanFay

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

  • Slideshow v2.1: A minor bug fix. Previous versions no longer work because of dwitter improvements. Good news is we can now use }{ in dweets for one time code.

Please log in (or register) to comment.

Loading...
Next page