Dwitter

remix of #1480 by magna

function u(t){

}//
144/140


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

  • magna: Pair programming nightmare
  • Load older comments...
  • Polyducks: Could you make a random function to skip odd spaces?
  • magna: It has to be a deterministic PRNG so that the places that are skipped are persistent. Otherwise, it would just look like a random flipping of characters. I thought about it, but couldn't immediately find a short solution.
  • Polyducks: That's a great point. Dwitter is such a mind twister!

Please log in (or register) to comment.

u(t) is called 60 times per second. t: elapsed time in seconds. c: A 1920x1080 canvas. x: A 2D context for that canvas. S: Math.sin C: Math.cos T: Math.tan R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)