dwitter.net | Agnes (2359)

+ 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
remix of d/7684 by u/Agnes

function u(t) {

}//
126/140


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

  • A slightly more boring version of the previous dweet with colours removed to make the circle segments wrap around each other better. There's probably a way to do colour with this.

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes 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

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 illustrating how t diverges from time reported by getTime() as framerate gets lower. Warning: this dweet intentionally loops for longer and longer, and will probably eventually lock your browser if you have it on screen for 20 minutes.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7651 by u/Agnes

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.

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

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

  • Half-assed attempt at Bees and Bombs' curtain thing. Done better by u/BalintCsala

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
131/140


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

  • Why is the joker the only card that gets its own emoji?

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

  • Previous dweet with shaking added from the characters saved by using onclick; thanks u/prplz.

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

  • Click the present for your random gift. I wanted the present to move around and shake until you clicked it, but couldn't make it happen with the required function calls.
  • u/prplz
    Golfed c.onclick=z=()=>{c.width|=0;x.font="16em A";x.fillText(String.fromCodePoint(127873+t*60|0),832,668)};t||z()
  • u/prplz
    Ah i just realized that won't allow you to do the movement you wanted, but there are some other tricks there
  • u/Agnes
    Thanks for the onclick tip! That kind of allows me to do the shaking.

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

  • My first code golf, the Koch Curve

Please log in (or register) to comment.

Loading...
Next page