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
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
remix of d/22826 by u/Agnes

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

  • Slightly more interesting depth-sorted spinning tower
  • u/Agnes
    I just realised there's literally no reason to do mod 2*pi at the end of the P function, wow
  • u/Agnes
    And there's a map(e=>e) in there! Must have been asleep when I programmed this.

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/22738 by u/TGY

function u(t) {

}//
129/140


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

  • Very cool idea by TGY, playing around with the concept
  • u/Agnes
    You can even optimise this by adding a=a.filter(e=>e>0) if X*Y is replaced by (e.x-960)*(e.y-540), which I guess doesn't matter at all but feels better somehow if someone were to sit around clicking on this millions of times
  • u/aleamb
    #interactive

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/7791 by u/Agnes

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

  • Geological default

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

  • Very similar to something I already did but I like how this is a single expression.

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/9650 by u/Agnes

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

  • Yarn planet (variant of previous dweet with strokes instead of fills)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7763 by u/Agnes

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

  • Rings of dust II: smaller particles

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

  • What colour is your easter pig?
  • u/Agnes
    (Sometimes you don't get an easter pig and sometimes the pig is a ghost, but I think that improves the dweet and I don't have the characters to fix either bug)
  • u/chokezonhorsey
    haha.. i love it :))
  • u/BirdsTweetCodersDweet
    Apparently c.width|=q=t<10;f=t?q?(f/Math.random())%9e3:f:1;x.font=512*(q?t/10:1)+'px A';x.fillStyle='#'+!q*~~f;x.fillText("🐖",660+t*q*f%5,740) fixes the ghost pig on mine :P

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

function u(t) {

}//
90/140


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

  • Arithmetic monochromatic pop art slideshow? Kinda?

Please log in (or register) to comment.

Loading...
Next page