Skip to main content

Module number_wheel

Module number_wheel 

Source
Expand description

A rolling-digit counter: each digit column spins through 0-9 like a mechanical odometer reel before landing on its target.

Distinct from crate::counter::Counter, which interpolates a value and re-renders the number each frame — its digits change by arithmetic, and the glyphs jump. Here the digits are physically on a strip that travels: what lands is the number you asked for, and what you watch is the travel. Reels land left-to-right, which is what makes the final digit read as the one that settles the figure.

Structs§

NumberWheel
An odometer-style number where each digit rolls into place.

Enums§

WheelSpin
How many full 0-9 revolutions a reel makes before landing.