dwitter.net

+ 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

function u(t) {

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

}//
138/140


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

show FPS hide FPS share fullscreen

function u(t) {

}//
130/140


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

  • katkip: #triangles c.width*=1;f=(X,Y,R,Z=40+C(R)*40)=>{x.beginPath();for(i=3;i--;)x.arc(X+C(j=i*2.09+R)*Z,Y+S(j)*Z,0,0,0),x.fill()};for(k=20;k--;)for(l=12;l--;)f(k*99,l*99,40+t*2+k*3.14+l*3.14)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
134/140


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

show FPS hide FPS share 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).

  • taupelink: Playing with the formula a little bit, a nonlinear transformation

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

  • joeytwiddle: Broken parallax scrolling effect (only works if you wiggle your mouse over the dweet while you scroll the page)
  • joeytwiddle: I tried various things but I couldn't find any way for the iframe to know when it has been scrolled. :-/
  • katkip: It impossible. Iframe's cursor doesn't update if mouse isn't moving inside iframe

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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/14810 by u/Fime

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

  • taupelink: Variant where the distance scale factor is 1/2 plus-or-minus a little bit. Also some code golfing
  • taupelink: I think some of the pattern details are an artifact of the way I golfed the code...of whatever the values of sin(i*540 radians) are, for integers i=0,...,539
  • Xen: sexy

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
134/140


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

  • williambellwisdo: Riff off of Katkip's great dweet two days ago. This is what happens if you floor the rotation angle.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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