inverse lerp — live canvas animation example

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

inverseLerp is lerp run backwards. Feed it a value between 0 and 100 (left) and it answers “how far along is that?” as a 0→1 fraction (right). Handy for turning a raw measurement into progress.