dwitter.net | Agnes (1304)

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

  • #default, but only when you're not looking at it
  • u/Agnes
    ... maybe this doesn't work at all. I don't know how to tell if it's a default when I'm not looking at it
  • u/cantelope
    ... the shim will halt when offscreen, so, it likely cannot run

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

  • Spun tunnel (spunnel)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/24213 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).

  • #interactive version of Magna's mandelbrot renderer: click to make it do one more rectangle per frame
  • u/Agnes
    Uncompressed: for(r=Math.random,c.onclick=e=>M++,m=M=t?M:1;m--;x.fillStyle="#"+j,x.fillRect(e*480,f*482,++s,s))for(e=r(f=r(a=b=0)*9/4)*4,X=e-2.8,Y=f-9/8,j=999;a*a+b*b<=4&&j--;s=999/t)[a,b]=[a*a-b*b+X,2*a*b+Y]
  • u/Agnes
    If it's not clear, spam click to make it speed up a bunch until your computer can't handle it anymore
  • u/Xen
    love it!

Please log in (or register) to comment.

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

  • u/Agnes
    I don't usually post compressed dweets but this one was very boring without the interactive part, and I don't think it's possible in 140.

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

  • Drop shadow #default (very simple)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • Fillbots (kind of)
  • u/Agnes
    Missing the hose and the filling of red liquid between t=4 and t=5 but I'm never getting either of those in the remaining 22 characters.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • u/danny@hille.dk
    just an idea ->c.width=300;for(i=9;i--;x.fillStyle='#a72')x.fillText("🖐",i*19+72+19*S(t),70-2*C(t+i));for(i=19;i--;)x.fillRect(i*16,70-T(i+12)/4,15.5,2e3)
  • u/Agnes
    Oh, like they're reaching over a fence? That's a fun interpretation, I was going for "hands poking out of dirt" but obviously a brown rectangle can be anything.
  • u/Smiley1000
    To me, that looks like blood

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

  • I've always wondered what was inside those default bars #scarymovies

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
138/140


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

  • #time flies like an arrow

Please log in (or register) to comment.

Loading...
Next page