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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/32176 by u/shandriy

function u(t) {

}//
102/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/15329 by u/tomxor

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

  • u/tomxor
    soothing :)
  • u/rep_movsd
    There are many fractal dweets who can be zoomed in to find some gems like this

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

  • t?c.width=-1:a=1 a+=(t%6)-3 x.arc(300+a,119-68*S(2*t%3.16),50,0,7) x.stroke() x.clip() x.font="6cm A" x.fillText("Dwitter",200*S(t)-200,160)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
119/140


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

  • swimming

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
122/140


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

  • i know nothing about this lmao, never played with canvases before
  • u/BirdsTweetCodersDweet
    c.width+=0 for(i=10;i--;)x.fillStyle=R(125,i*25,200,.75),x.fillRect(i*100+T(t*(i/10))*100,S(t*2)*100+250,100,100) -- your code can be shortened down to 113 bytes. In this example, it might not mean much, but for bigger dweets shortening code like this is crucial. If you'd join our discord chat, we could teach you some more tips and tricks like these ;)
  • u/BirdsTweetCodersDweet
    Also- that there is a newline, not a space...
  • u/Purpzie
    Thank you!! I'm way new to this but seriously, thank you for the tips.
  • u/Purpzie
    Heck, the invite is expired...

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

  • Swarm Chaos

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.

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

  • Real time planets position (not really precise but I tried); s = sun, p = planet. Orininal code: x.font='70px"';p=(d=new Date(),d).getTime()/1e4 x.fillText('s',900,560);for(i=0;i++<10;)x.fillText('p', 900+C(p*p/1e10+i*p/1e3)*999/i, 560+S(p*p/1e10*i*99/p+i*p/1e3)*999/i)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
91/140


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

  • getting started...

Please log in (or register) to comment.

Loading...
Next page