Paint a canvas with math! Variables: x, y are math-space coords (float, affected by zoom/pan/rotate). a animates 0–1000. r, s, t are random. i is pixel index.

Controls: WASD = pan  |  E = zoom in (2×)  |  R = zoom out  |  F/G = rotate ±15°  |  ? = toggle HUD

A=0

Some recipes:

  (x * y > 200000 ? x : y) + x % y
  (y+a*.0001)*i*.01 * ((x)*.04)
  Math.sin(x*.05)*Math.cos(y*.05)*500
  x^y