NumericDisplay¶
Qualified name: algan.mobs.numeric\_display.NumericDisplay
- class NumericDisplay(value, num_digits=2, **kwargs)[source]¶
Bases:
Mob
Methods
change_value
destroy2
Spawns the mob, introducing it into the video.
update_display
Attributes
animation_manager
basis
The flattened 3x3 matrix representing the Mob's orientation and scale.
color
glow
location
The 3-D location of the Mob in world space.
max_opacity
normalized_basis
The Mob's basis matrix with all its row vectors normalized to unit length.
opacity
scale_coefficient
The scaling factor of the Mob along its local axes, derived from the basis.
value
- spawn(animate=True)[source]¶
Spawns the mob, introducing it into the video. Prior to spawning, a Mob will not appear on screen and any changes made to its animatable attributes will not be animated. After spawning, changes made to the Mob are animated by default.
- Parameters:
animate – Whether a spawn-in animation should be played. By default, the spawn-in animation is a simple fade-in. Defaults to True.