Dwitter

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

function u(t) {

}//
141/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.


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.


function u(t) {

}//
147/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.

Xen
remix of d/7024 by u/DirtyDan

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

  • Xen: Shoutz 2 DirtyDan

Please log in (or register) to comment.


function u(t) {

}//
142/140


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

  • Load older comments...
  • BirdsTweetCodersDweet: See the link in the comments of that one as well. Shortened it some more.
  • triclops200: The first one had golf that kept the output the same, but the second has output changes (the /3.6, for example, was there to approximate center of screen y), otherwise, good golf
  • snydej: Note that "540" is shorter than "w/3.6" ;)

Please log in (or register) to comment.


function u(t) {

}//
58/140


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

  • BuRRak: Calculating Pi using Nilakantha's series :)
  • BuRRak: meh, got an extra pair of brackets in there, nvm

Please log in (or register) to comment.

remix of d/7021 by u/DirtyDan

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

Please log in (or register) to comment.

remix of d/7009 by u/DirtyDan

function u(t) {

}//
142/140


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

  • DirtyDan: If someone can shave 2 characters off, we can invert the colors! Like in d/7011
  • akm: here, I shaved off 10 chars: with(x)for(fillStyle="#FFF",i=0;i++<44;lineWidth=44)beginPath(arc(960+S(a=t*i/11)*(d=i*t*S(t)),540+C(a)*d,i*3,0,7),fill(stroke()))

Please log in (or register) to comment.

hg
remix of d/789 by u/oknoorap

function u(t) {

}//
125/140


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

  • hg: Shortened by a few characters.
  • Load older comments...
  • AnnanFay: If you're interested in using images http://具.pw might be useful.
  • magna: Or even //具.pw
  • magna: Hey hg, BTW, I deleted your Zelda sound dweet because we're trying to apply the policy of not playing unsolicited sounds. (It's still acceptable to play sounds on user interaction.)

Please log in (or register) to comment.


function u(t) {

}//
141/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