ControlledVoltageSource

class manim_eng.components.sources.ControlledVoltageSource(voltage: str | None = None, **kwargs: Any)

Bases: DiamondOuter, EuropeanVoltageSourceBase

Circuit symbol for a controlled voltage source.

Attributes

ControlledVoltageSource.animate

Used to animate the application of any method of self.

ControlledVoltageSource.animation_overrides

ControlledVoltageSource.anode

Return the anode (positive terminal) of the source.

ControlledVoltageSource.cathode

Return the cathode (negative terminal) of the source.

ControlledVoltageSource.color

ControlledVoltageSource.depth

The depth of the mobject.

ControlledVoltageSource.fill_color

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

ControlledVoltageSource.height

The height of the mobject.

ControlledVoltageSource.left

Return the left-hand terminal of the component.

ControlledVoltageSource.n_points_per_curve

ControlledVoltageSource.negative

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

ControlledVoltageSource.positive

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

ControlledVoltageSource.right

Return the right-hand terminal of the component.

ControlledVoltageSource.sheen_factor

ControlledVoltageSource.stroke_color

ControlledVoltageSource.terminals

The list of terminals of the component.

ControlledVoltageSource.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.