dwitter.net | taupelink (7550)

+ 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: #Food
show FPS hide FPS share 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).

  • u/DataMeta
    I see people with elaborate headgear facing away or robots facing us
  • u/tomxor
    hah, same, but not the robots

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
126/140


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

  • If you take two random integers of at most 7 digits each, what is the probability that they are relatively prime? This simulation suggests somewhere around 60%

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
128/140


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

  • adding a dash of color to d/15323

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

  • Extended Euclidean algorithm, to find h, k such that hX+kY=gcd(X,Y) #math #numbertheory

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/14724 by u/katkip

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • Chekhov's water pistol emoji. #silly

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

  • Spinning rotating disc thing

Please log in (or register) to comment.


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

  • hsl color rotation with random rectangles
  • u/joeytwiddle
    Stains: w=1920;h=1080;r=Math.random;for(i=99;i--;)X=r()*w,Y=r()*h,x.fillStyle=hsl(${X/6+999*t},90%,${Y/21+20}%,.013),x.fillRect(X,h-Y,s=r()*300,s)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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/taupelink
    If you're seeing artifacts, you can insert "|0" to the right of S(t)*300

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
101/140


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

  • u/katkip
    nice
  • u/taupelink
    Notes: The v${-2*C} at the end can be omitted. I regret my choice of "C" for a variable name--that's cosine :)

Please log in (or register) to comment.

Loading...
Next page