VariableCapacitor

class manim_eng.components.capacitors.VariableCapacitor(**kwargs: Any)

Bases: VariableModifier, Capacitor

Circuit symbol for a variable capacitor.

Attributes

VariableCapacitor.animate

Used to animate the application of any method of self.

VariableCapacitor.animation_overrides

VariableCapacitor.color

VariableCapacitor.depth

The depth of the mobject.

VariableCapacitor.fill_color

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

VariableCapacitor.height

The height of the mobject.

VariableCapacitor.left

Return the left-hand terminal of the component.

VariableCapacitor.n_points_per_curve

VariableCapacitor.right

Return the right-hand terminal of the component.

VariableCapacitor.sheen_factor

VariableCapacitor.stroke_color

VariableCapacitor.terminals

The list of terminals of the component.

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