About Iteration
Iteration is a real-time GPU remix of an iterative function visualizer originally created for Android by my UC Santa Cruz colleague Adam M. Smith. Each frame seeds thousands of points across [−1, 1]2 and evaluates 16 nested trigonometric recurrences on the GPU:
x' = sin(A · x) + sin(B · y)
y' = cos(C · x) + sin(D · y)Each pass i ∈ [1, 16] evaluates a continuous chromatic ramp, adapting live between luminous additive blending (RGB(t) = (t, 2t(1 − t), 1 − t)) on dark paper and optical Beer–Lambert ink absorption across teal, cobalt, orchid, and vermilion driven by the attractor's live geometry and flow on light archival paper. This modernized edition upgrades the original WebGL 1 pipeline to a native WebGPU (WGSL) compute and instanced renderer with automatic WebGL 2 fallback, unified Pointer Events (supporting 1-finger and 2-finger multi-touch steering), and hardware-adaptive 30–120fps scaling.