Dwitter | Agnes (455)

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
121/140


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

  • Agnes: Just showing how the weird "evenodd" argument to fill can let you not have to do globalCompositeOperation!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/8761 by u/magna

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

  • Agnes: Proof of concept. Christ, what am I doing with my life #sex
  • Load older comments...
  • Agnes: (You may have to tweak the numbers to get it to line up with your emoji set, it looks all right for me on Windows/Chrome)
  • micahcowan: Fixed for Mac/Chrome: c.width=240 with(x)font='6em"',fillText('👌',107,110),rect(0,0,160,1e4),clip(),setTransform(0,-1,-1,0,0,140),fillText('☝️',0,-65+30*S(t*4))
  • micahcowan: (I was thinking it would look better with a clip() when I saw u/magna's. Nice!)

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.

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

  • Agnes: Corrupting PNG data. There's probably a dweet out there that does exactly this already, because I stole the idea from the Github wiki.

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

  • Agnes: Grainy-looking red/turquoise spiral

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

  • Agnes: I was trying to make a lotus flower thing but it turned into a 90s tie-dye pattern instead.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • Agnes: (Reuploaded to change a number from 4 to 5 to compensate for it skewing to the left)

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.

show FPS hide FPS share fullscreen

function u(t) {

}//
124/140


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

  • Agnes: Did you know only one and a half browsers implement x.currentTransform?
  • PiggyClone205: What's the half browser?
  • Agnes: Chrome, which only supports it if you turn on a debug flag.

Please log in (or register) to comment.

Loading...
Next page