PushToBreakSwitch¶
- class manim_eng.components.switches.PushToBreakSwitch(closed: bool = True, **kwargs: Any)¶
Bases:
PushSwitchBaseComponent symbol for a push-to-break switch.
- Parameters:
closed (bool) – Whether the switch should be initially closed or not. Defaults to closed
switches ((this is in contrast to the other)
open). (which default to)
Attributes
PushToBreakSwitch.animateUsed to animate the application of any method of
self.PushToBreakSwitch.animation_overridesPushToBreakSwitch.colorPushToBreakSwitch.depthThe depth of the mobject.
PushToBreakSwitch.fill_colorIf there are multiple colors (for gradient) this returns the first one
PushToBreakSwitch.heightThe height of the mobject.
PushToBreakSwitch.leftReturn the left-hand terminal of the component.
PushToBreakSwitch.n_points_per_curvePushToBreakSwitch.rightReturn the right-hand terminal of the component.
PushToBreakSwitch.sheen_factorPushToBreakSwitch.stroke_colorPushToBreakSwitch.terminalsThe list of terminals of the component.
PushToBreakSwitch.widthThe width of the mobject.