Wire

class manim_eng.circuits.wire.Wire(start: Terminal, end: Terminal)

Bases: WireBase

Wire 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:
  • start (Terminal) – The terminal the wire starts at.

  • end (Terminal) – The terminal the wire ends at.

Raises:

ValueError – If start and end are the same.

Attributes

Wire.animate

Used to animate the application of any method of self.

Wire.animation_overrides

Wire.color

Wire.depth

The depth of the mobject.

Wire.fill_color

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

Wire.height

The height of the mobject.

Wire.n_points_per_curve

Wire.sheen_factor

Wire.stroke_color

Wire.width

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