wrap — live canvas animation example

motion & easing8+
trig, angles & vectors8+
collision detection11+
numbers in motion7-
geometry & shapes8+
generative showpieces13+
handy helpers7+

wrap loops a value around a range instead of stopping at the edge. As the input climbs (left), the output (right) snaps back to 0 every time it passes 100 — like an object leaving one side of the screen and reappearing on the other.