EuropeanVoltageSourceBase

class manim_eng.components.base.source.EuropeanVoltageSourceBase(voltage: str | None = None, **kwargs: Any)

Bases: VoltageSourceBase

Base class for all European voltage sources.

Designed to be used in conjunction with the RoundOuter and DiamondOuter modifiers, to produce standard and controlled sources.

Parameters:

voltage (str | None) – The voltage label to set initially. Takes a TeX math mode string.

See also

modifiers.RoundOuter, modifiers.DiamondOuter

Attributes

EuropeanVoltageSourceBase.animate

Used to animate the application of any method of self.

EuropeanVoltageSourceBase.animation_overrides

EuropeanVoltageSourceBase.anode

Return the anode (positive terminal) of the source.

EuropeanVoltageSourceBase.cathode

Return the cathode (negative terminal) of the source.

EuropeanVoltageSourceBase.color

EuropeanVoltageSourceBase.depth

The depth of the mobject.

EuropeanVoltageSourceBase.fill_color

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

EuropeanVoltageSourceBase.height

The height of the mobject.

EuropeanVoltageSourceBase.left

Return the left-hand terminal of the component.

EuropeanVoltageSourceBase.n_points_per_curve

EuropeanVoltageSourceBase.negative

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

EuropeanVoltageSourceBase.positive

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

EuropeanVoltageSourceBase.right

Return the right-hand terminal of the component.

EuropeanVoltageSourceBase.sheen_factor

EuropeanVoltageSourceBase.stroke_color

EuropeanVoltageSourceBase.terminals

The list of terminals of the component.

EuropeanVoltageSourceBase.width

The width of the mobject.

_construct() None

Construct the shape of the component.

Code to build the component’s symbol goes in here and not in __init__() (contrary to Manim’s standard). This is because the base Component class has to perform initialisation both before (to set up the groups etc.) and after (to set the anchor positions for annotations) the component’s shape setup.