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.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Food

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

  • rainbow waves
  • u/tactical_retard
    138: r=(M=Math).random for(i=a=2e3;i--;M.abs(Y-500+S(X/100)*500)>60*t&&x.fillRect(X,Y,20,20))x.fillStyle=hsl(${60*t},100%,35%,X=r()*a,Y=r()*a

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

  • I drove all night (and day)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/672 by u/aemkei

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

  • High resolution Game of Life with a constant ground layer. It will eventually start cycling. To increase FPS swap 2e4->6e3. To hide the ground swap 4e3->5e3.

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

  • A Stopwatch In 140
  • u/ToxicCaves64
    Click to make a lap
  • u/Friend
    Pushed it to 135 - c.width=400;x.fillText(m,2,8);c.onclick=()=>(a.push(m-r),r=m);a.map((i,j)=>x.fillText(i,2,20+8*j));g+=1;g%60==0?m=s++:0}{g=m=s=r=0;a=[]
  • u/Friend
    #interactive
  • u/BuRRak
    Down to 64 without line breaks: c.width=400 onclick=Q=>V+=" "+~~t x.fillText(~~t+V,0,9); }{V=""
  • u/BuRRak
    Sorry, 62 if you remove the semicolon & space/newline after it

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

  • Magic numbers aplenty, but closer to what was in my mind, at least ;) happy christmas!

Please log in (or register) to comment.

remix of d/7511 by u/magna

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

  • u/magna
    Incredible! But also not incredible because it's a u/taupelink...
  • u/taupelink
    Thank you! And thank you for the positive feedback on my other dweets
  • u/taupelink
    Thanks to all of Dwitter for bearing with me as my style has evolved. I kind of regret overusing the start-big-and-shrink technique a couple years back
  • u/danny@hille.dk
    I cannot speak for everyone, but I, for one, enjoy watching your work. Keep it up!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/2962 by u/FireFly

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

  • Made my own little try to reduce the code a bit..

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

Please log in (or register) to comment.

Loading...
Next page