dwitter.net | marc8 (2708)

+ 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

function u(t) {

}//
125/140


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

  • Cracking dwitter

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/11279 by u/marc8

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

  • 355/113 is a famous approximation of pi and here we need pi/5 which is perfect as 5 divides 355 giving 71/113

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
124/140


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

  • c.width|=j=10;k=6.28;z=999;r=z*2**(2.8+t%2.8);for(;j--;){x.beginPath();for(i=0;i<2;i+=.4)x.lineTo(z+r*S(q=i*k-t),z/2+r*C(q));x.fill('evenodd');r*=-.38}

Please log in (or register) to comment.


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

  • Electricity

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

  • u/andregn
    You could consider Math.PI = 22/7
  • u/pavel
    When I have chars left I sometimes write out the full precision constants.

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/10939 by u/veubeke

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

}//
96/140


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

  • Sierpinski rain

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

  • Estimating Pi using the Monte Carlo Method

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/10534 by u/tomxor

function u(t) {

}//
133/140


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

  • u/katkip
    oh wow
  • u/joeytwiddle
    Very nice. Set w=.2 if you don't want to #waitforit
  • u/tomxor
    Oops, this doesn't seem to work at all in some browsers... showing up the aignificant subpixel interpolation differences between canvas implementations. Works in chrome - soz

Please log in (or register) to comment.

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

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.

Loading...
Next page