dwitter.net | UEZ (24015)

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

}//
140/140


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

  • More color, more movement, more vertigo :-)
  • u/danny@hille.dk
    for(c.width=w=384,d=new ImageData(w,w),m=w*w,i=0;m--;)r=((X=m%w-w/2)*X+(Y=m/w-w*.7)*Y)/w,(q=d.data)[i++]=(f=T(C(t)*9+X/r|Y/r+S(t)*8)*w),q[i++]=f/3,q[i++]=S(f-t)*w,q[i++]=w x.putImageData(d,0,0)
  • u/mxfh
    there is also data.set([r,g,b,a],4)
  • u/mxfh
    great to see this is going places.

Please log in (or register) to comment.


function u(t) {

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

}//
139/140


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

  • Bouncy Mountain ⛰️

Please log in (or register) to comment.

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

  • Bounce Down ⚪

Please log in (or register) to comment.

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

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

  • "This Thing" Capturing a Marble #Physics

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

  • Cube world #3d

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

  • Event horizon

Please log in (or register) to comment.

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

  • Surface swapping #ball

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

  • White hole
  • u/pavel
    Here is the whole logic in 117 chars without the pulsing for(x.fillRect(x.globalAlpha=.02,0,i=1e4,i);i--;x.clearRect(960+r*C(a=i*i-500/r),540+r*S(a+.3),1,1))r=2**((t+i/9)%10)
  • u/rep_movsd
    Of course you'd write it much smaller :)
  • u/rep_movsd
    Of course you'd write it much smaller :)

Please log in (or register) to comment.

Loading...
Next page