WireBase¶
- class manim_eng.circuits.base.wire.WireBase(start: Terminal, end: Terminal, updating: bool)¶
Bases:
VMobjectBase class for wire objects.
Subclasses must implement the
.get_corner_points()method to declare where the wire should have corners.Attributes
WireBase.animateUsed to animate the application of any method of
self.WireBase.animation_overridesWireBase.colorWireBase.depthThe depth of the mobject.
WireBase.fill_colorIf there are multiple colors (for gradient) this returns the first one
WireBase.heightThe height of the mobject.
WireBase.n_points_per_curveWireBase.sheen_factorWireBase.stroke_colorWireBase.widthThe width of the mobject.
- attach() Self¶
Attach the wire to its start and end terminals, if not already attached.
This updates the terminals so that they know they have one more connection.
- detach() Self¶
Detach the wire from its start and end terminals, if not already detached.
This updates the terminals so that they know they have one fewer connection.
- abstractmethod get_corner_points() list[ndarray[tuple[Any, ...], dtype[float64]]]¶
Get the corner points of the wire.
Returns the vertices of the wire, not including the end points (i.e. at the start and end terminals).