dwitter.net | smtsjhr (588)

+ 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
remix of d/19467 by u/smtsjhr

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

}//
140/140


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

  • SOURCE (194/140): for(j=4;j--;){for(i=96;i--;x.fill()){u=(d=(i+((-1)**j)*t%2)/15)%1;k=Math.floor(d);x.fillStyle=R(c=i%2*255,c,c,1);x.beginPath();x.arc((2*k-1-C(a=(-1)**k*u*3.14))*(A=200),2*A*(3-j)+S(a)*A,A,0,7)}}

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/19452 by u/smtsjhr

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

  • SOURCE (194/140): H=960;r=(y,a,b)=>x.fillRect(H+y,H-i,a,b);for(c.width|=i=H;j=i/H;i--){f=C(t/4)/2;x.fillStyle=R(0,0,0,.1*(1-j*j));r(y=C(t)*(i/8*S(5*j*j)+S(f*50*j)*H*f*j**4),h=10+.2*H*j**4,9);r(y,9,h);r(y+h,9,h)};
  • u/Qwitter
    Awesome: looks a bit like laminar cigarette smoke to me

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

  • WhispyWave

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/18939 by u/smtsjhr

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

Please log in (or register) to comment.

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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/18891 by u/smtsjhr

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

  • set a = some const for looped pattern

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/18861 by u/smtsjhr

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

  • Figure 1: A simulation of a sliding chain-link fence

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.

Loading...
Next page