dwitter.net | iverjo (1374)

+ 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/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

function u(t) {

}//
111/140


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

  • Let's call this one "60s CRT TV". Wait around 20 seconds to let the effect converge.

Please log in (or register) to comment.

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

function u(t) {

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

}//
127/140


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

  • Sunset

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
110/140


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

  • It turns out that this looks different with the Windows 10 Anniversary update

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

  • Pacman, inspired by tamberlo

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 1 remix fullscreen

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.

Loading...
Next page