WireBase

class manim_eng.circuits.base.wire.WireBase(start: Terminal, end: Terminal, updating: bool)

Bases: VMobject

Base class for wire objects.

Subclasses must implement the .get_corner_points() method to declare where the wire should have corners.

Attributes

WireBase.animate

Used to animate the application of any method of self.

WireBase.animation_overrides

WireBase.color

WireBase.depth

The depth of the mobject.

WireBase.fill_color

If there are multiple colors (for gradient) this returns the first one

WireBase.height

The height of the mobject.

WireBase.n_points_per_curve

WireBase.sheen_factor

WireBase.stroke_color

WireBase.width

The 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).