VariableModifier¶
- class manim_eng.components.base.modifiers.VariableModifier(terminals: list[Terminal], label: str | Value | None = None, annotation: str | Value | None = None, **kwargs: Any)¶
Bases:
ComponentModifier to add diagonal arrow to a component to signify variability.
Attributes
VariableModifier.animateUsed to animate the application of any method of
self.VariableModifier.animation_overridesVariableModifier.colorVariableModifier.depthThe depth of the mobject.
VariableModifier.fill_colorIf there are multiple colors (for gradient) this returns the first one
VariableModifier.heightThe height of the mobject.
VariableModifier.n_points_per_curveVariableModifier.sheen_factorVariableModifier.stroke_colorVariableModifier.terminalsThe list of terminals of the component.
VariableModifier.widthThe width of the mobject.
- _construct() None¶
Construct the shape of the component.
Code to build the component’s symbol goes in here and not in
__init__()(contrary to Manim’s standard). This is because the baseComponentclass has to perform initialisation both before (to set up the groups etc.) and after (to set the anchor positions for annotations) the component’s shape setup.