Source

class manim_eng.components.base.source.Source(**kwargs: Any)

Bases: SquareBipole

Base class of all sources.

Attributes

Source.animate

Used to animate the application of any method of self.

Source.animation_overrides

Source.anode

Return the anode (positive terminal) of the source.

Source.cathode

Return the cathode (negative terminal) of the source.

Source.color

Source.depth

The depth of the mobject.

Source.fill_color

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

Source.height

The height of the mobject.

Source.left

Return the left-hand terminal of the component.

Source.n_points_per_curve

Source.negative

Return the negative (left-hand) terminal of the source.

Source.positive

Return the positive (right-hand) terminal of the source.

Source.right

Return the right-hand terminal of the component.

Source.sheen_factor

Source.stroke_color

Source.terminals

The list of terminals of the component.

Source.width

The width of the mobject.

property anode: Terminal

Return the anode (positive terminal) of the source.

property cathode: Terminal

Return the cathode (negative terminal) of the source.

property negative: Terminal

Return the negative (left-hand) terminal of the source.

property positive: Terminal

Return the positive (right-hand) terminal of the source.