demo.js

editor

Reference

60 FPS
  • t = Elapsed time (seconds)
  • c = Canvas
  • w = Canvas width
  • h = Canvas height
  • x = Canvas context
  • S = Math.sin
  • C = Math.cos
  • T = Math.tan
  • R(r,g,b,a=1) = "rgba(r,g,b,1)"
  • rseed(string) = seed RNG
  • rfloat(m=0, n=1) = random float in range [m, n)
  • rint(m=0, n=maxint) = random integer in range [m, n]
  • rchoice(list) = random element in list