dwitter.net | metamero (868)

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

  • this enormous evolving minefield certainly deserves your fullscreen #gameoflife behind the scenes
  • u/metamero
    c.width|=n=128;M=(t?M:[...Array(y=72*n)]).map((v,k)=>t?([n,1,n-1,n+1].map(d=>v+=M[(k+d+y)%y]+M[(k-d+y)%y]),v&&x.fillText(v,2+15*(k%n),9+15*(k/n|0)),v^4?v==3:M[k]):Math.random()>.5)
  • u/DataMeta
    Cool!

Please log in (or register) to comment.


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

}//
121/140


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

  • u/rnbw
    it generated a followable path! :O (maybe that's your next challenge...)

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.

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

  • dweet stealer - choose and run another dweet
  • u/metamero
    click on canvas to run selected dweet
  • u/BirdsTweetCodersDweet
    Seems to me like you also need to scroll down and back up again (to pause the dweet and resume it) for it to run, after clicking on the canvas. Chrome {whatever the latest version is} on Elementary OS {also latest}.
  • u/BirdsTweetCodersDweet
    Cool stuff though :P
  • u/metamero
    @BirdsTweetCodersDweet thanks! yes, I couldn't figure a way to call playDemo() after dweet transition/reload (seems timers are also reset). so it'll need to get this "play" message from server when scrolling back. (made in chrome/windows and tested on firefox; same thing on scrolling, but mouse wheel event return different values on firefox)
  • u/katkip
    Awesome

Please log in (or register) to comment.

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

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

  • u/metamero
    for(z=72,c.width|=k=0;k<449;++k)i=k>>4,j=k&15,p=z*i,q=z*j-z,((i+j)%2?x.rect(p,q,z,z):0),x.rect(p+4,q+4+z*C(t)**(k%7),20,20),x.rect(p+48,q+48+z*S(t)**(k%5),20,20);x.fill('evenodd');
  • u/iverjo
    #opticalillusion

Please log in (or register) to comment.

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

  • Find the Black Dots - Scintillating Grid Illusion
  • u/metamero
    c.width=w=777 c.style.background='#aaa' for(p=0;p<9;++p)for(q=0;q<9;++q)with(x)beginPath(),arc(r=p*99,s=q*99,13,0,7),fillStyle='#fff',fill(),fillStyle=R(),fillRect(r-92,s-92,84,84)
  • u/anotherkitten
    this image always makes me feel like the c.style.background there
  • u/metamero
    @anotherkitten you such cool and cute dwitter profile / person !! <3
  • u/metamero
    the only difference from this and the other is the balls are a bit smaller (r=12): arc(r=p*99,s=q*99,12,0,7)
  • u/metamero
    one can try different screens and also change the background to #888 or etc

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
12/140


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

  • 12B "cube" ascii

Please log in (or register) to comment.

Loading...
Next page