dwitter.net | zanella (15549)

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

}//
61/140


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

  • Calculating pi :)
  • Show more comments…
  • u/zanella
    Thumbs up for using the error output instead of the canvas. :)
  • u/BuRRak
    golfed down by 2 characters t||(p=0,n=1);for(i=1e5;i--;)p+=(n%2?4:-4)/(n++*2-1);throw p
  • u/BuRRak
    nvm, 4 characters, dwitter should have edit comment feature t||(p=n=0);for(i=1e5;i--;)p+=(n++%2?4:-4)/(n*2-1);throw p
  • u/BuRRak
    Oh no, just noticed it throws negative pi, just swap 4 with -4

Please log in (or register) to comment.

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

  • Shoutz 2 DirtyDan

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

  • unknown pleasures
  • u/joeytwiddle
    Nice! Dwitter album covert art d/2108
  • u/jellyedwards
    @joeytwiddle yours looks much more like it! I had a few other versions with fBm and fill etc. but couldn't get them under 140 chars!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/6624 by u/Jezza

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 1 remix fullscreen
remix of d/7009 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).

  • If someone can shave 2 characters off, we can invert the colors! Like in d/7011
  • u/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.

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

  • Say hello to mr.worm.. he is draging himself around, looking for his friends.

Please log in (or register) to comment.

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

  • Mostly an accident, but it looks cool anyway
  • u/DirtyDan
    Pretty sure most dweets are, lol
  • u/artfarnaa
    Every artist from every domain says same thing. Nothing great emerges without the author saying it was just an accident.
  • u/Lazy1337
    Not always true in creative coding/demoscene tbh

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/6994 by u/snydej

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 2 remixes fullscreen
remix of d/6990 by u/snydej

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
remix of d/6988 by u/snydej

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

  • I used a different strategy for the transform and managed to salvage enough characters to animate it.

Please log in (or register) to comment.

Loading...
Next page