dwitter.net | smilingfrog (19)

+ 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.
Theme challenge of the month: #candy
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 1 remix 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) {

}//
136/140


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

  • Houston, we have a problem
  • Show more comments…
  • u/smilingfrog
    Thanks for the input, Xen and DaSpider. I was aiming to have the whole "original canvas" area (since I changed height to 255) outside the blinking border, as well as the area inside the border, be black. But both c.parentElement.style and document.body.style (needed to set background color of parent since height was changed to 255 for the canvas) were too long and yielded a dweet > 194 bytes and thus too long to be compressed. There are a few bytes to be gained by faking the guru meditation code to something like Math.PI*1e7 or S(9)*1e8 but it still doesn't help get below 194 bytes for compressing.
  • u/smilingfrog
    Your external one looks great, DaSpider. :-)
  • u/DaSpider
    Still, more than 200 characters.
  • u/DaSpider
    https://guru.daspider.repl.co/?%20%20%20%20T…

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

  • first time dweeter
  • u/Xen
    welcome to the dwitter family!

Please log in (or register) to comment.

You've reached the end.