dwitter.net | DirtyDan (505)

+ 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
remix of d/5673 by u/DirtyDan

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 1 remix fullscreen
remix of d/5711 by u/DirtyDan

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

  • inverted the colors

Please log in (or register) to comment.

remix of d/5673 by u/DirtyDan

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

  • d/5673 is really cool to edit. most notably with how t is used in the trig functions; which functions are being used, and where they're used)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/5673 by u/DirtyDan

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

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.


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

  • Got this while trying to shorten this one: c.width=1920;p=Math.PI*2;x.beginPath();t/=4;a=540;for(i=0;i<250;i++){b=p*(i/270)*T(t);x.lineTo(i*8,a+a*S(b));x.lineTo(i*8,a+a*-S(b))}x.stroke()

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/5459 by u/DirtyDan

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
remix of d/5500 by u/DirtyDan

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

  • May not run well on smartphones ¯\_(ツ)_/¯

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/5459 by u/DirtyDan

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

  • Optimized for coolness/smoothness

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/5507 by u/DirtyDan

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

  • Reduced the size and amount of lines to run well on mobile

Please log in (or register) to comment.

Loading...
Next page