Wire¶
- class manim_eng.circuits.wire.Wire(start: Terminal, end: Terminal)¶
Bases:
WireBaseWire to automatically connect components together.
The connection algorithm will do its best to avoid going ‘backwards’ through components’ terminals whilst ensuring that automatic connections have no more than two vertices and are only horizontal and vertical.
- Parameters:
- Raises:
ValueError – If
startandendare the same.
Attributes
Wire.animateUsed to animate the application of any method of
self.Wire.animation_overridesWire.colorWire.depthThe depth of the mobject.
Wire.fill_colorIf there are multiple colors (for gradient) this returns the first one
Wire.heightThe height of the mobject.
Wire.n_points_per_curveWire.sheen_factorWire.stroke_colorWire.widthThe width of the mobject.
- 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).