dwitter.net | BriSeven (5912)

+ 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
remix of d/508 by u/New_Core

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

  • lol didnt need that beginpath there, was leftover from the other one

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
100/140


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

  • u/iverjo
    Very nice! I made a golfed version: x.fillStyle=R(b=250,100,b);x.fillRect(b*4,1079,1,1);x.drawImage(c,10*S(t),t<6?t-10:t-.01)

Please log in (or register) to comment.

remix of d/79 by u/iverjo

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

  • Golfed version (120 characters): c.width=960;for(i=2e3;i--;)b=2.79*i+t,x.fillRect(480+460*S(a=i/42)*S(b),270+160*(C(a)+T(t/9+a)),s=7/(S(a)*S(b+4.7)+2),s)
  • u/iverjo
    118 characters: c.width=960;for(i=2e3;i--;)x.fillRect(480+460*S(d=i/42)*S(b=2.79*i+t),270+160*(C(d)+T(t/9+d)),s=7/(S(d)*S(b+4.7)+2),s)
  • u/iverjo
    115 characters: c.width=960;for(i=2e3;i--;)x.fillRect(480+460*S(d=i/42)*S(b=2.79*i+t),270+160*(C(d)+T(t/9+d)),s=7/(-S(d)*C(b)+2),s)
  • u/iverjo
    114 characters: c.width=960;for(i=2e3;i--;)x.fillRect(480+460*S(d=i/42)*S(b=2.79*i+t),270+160*(C(d)+T(t/9+d)),s=7/(S(d)*C(b)+2),s)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/279 by u/iverjo

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

  • This was my first attempt at creating a water dweet. I lated discovered that Math.log wasn't the best way to model perspective

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
124/140


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

  • A remake of the "Starfield" screensaver that was included in Windows 98

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

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


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

  • u/lionleaf
    Try following the "wave" with your eyes!
  • u/innovati
    This is amazing!
  • u/vain
    amazing and beautiful effect. Nice tricky illusion

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.

You've reached the end.