angle interpolation (shortest turn) — live canvas animation example

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

Both needles rotate from 350° (orange) to 10° (green). The left needle lerps the raw numbers and makes the long almost-full spin backward through 180°. The right uses lerpAngle, which understands angle wrap-around and takes the tiny 20° hop across the 0°/360° seam.