numeric_display

A number on screen that animates between values.

DecimalNumber renders a number as text and makes its value an animatable attribute, so counter.value = 100 counts smoothly from wherever it was over the surrounding context’s runtime – re-rendering the glyphs each frame rather than interpolating their outlines.

decimal_places and integer_places fix the format so the display does not jitter in width as digits come and go.

Classes

DecimalNumber

A number drawn on screen, which counts when you assign to it.