dwitter.net | SuperFromND (4670)

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

  • Doorway Thingy

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

  • Oil Painting

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen

function u(t) {

}//
97/140


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

  • have a play with the C() and S() in fillRect

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen
remix of d/10048 by u/katkip

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

  • quick play about

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

Please log in (or register) to comment.

remix of d/10014 by u/yonatan

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

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

  • Spirals!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/7747 by u/lionleaf

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

  • 10000?!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

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

Please log in (or register) to comment.

Loading...
Next page