dwitter.net | taupelink (43)

+ 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
remix of [deleted]

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

  • taupelink: Sieve of Eratosthenes. Throws primes less than 65536. Row Y Column X stays unfilled if 256*Y+X is prime. #math

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
142/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).

  • taupelink: hsl color rotation with random rectangles
  • 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) {

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

}//
133/140


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

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

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

function u(t) {

}//
104/140


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

  • katkip: nice
  • 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.

show FPS hide FPS share fullscreen

function u(t) {

}//
142/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
remix of d/14386 by u/katkip

function u(t) {

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