PushToMakeSwitch¶
- class manim_eng.components.switches.PushToMakeSwitch(closed: bool = False, **kwargs: Any)¶
Bases:
PushSwitchBaseComponent symbol for a push-to-make switch.
- Parameters:
closed (bool) – Whether the switch should be initially closed or not. Defaults to open.
Attributes
PushToMakeSwitch.animateUsed to animate the application of any method of
self.PushToMakeSwitch.animation_overridesPushToMakeSwitch.colorPushToMakeSwitch.depthThe depth of the mobject.
PushToMakeSwitch.fill_colorIf there are multiple colors (for gradient) this returns the first one
PushToMakeSwitch.heightThe height of the mobject.
PushToMakeSwitch.leftReturn the left-hand terminal of the component.
PushToMakeSwitch.n_points_per_curvePushToMakeSwitch.rightReturn the right-hand terminal of the component.
PushToMakeSwitch.sheen_factorPushToMakeSwitch.stroke_colorPushToMakeSwitch.terminalsThe list of terminals of the component.
PushToMakeSwitch.widthThe width of the mobject.