DoubleCell

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

Bases: Cells

Circuit symbol for a double cell (often used to represent a battery).

Parameters:

voltage (str | None) – Voltage label to set on creation, if desired. Takes a TeX math mode string.

Attributes

DoubleCell.animate

Used to animate the application of any method of self.

DoubleCell.animation_overrides

DoubleCell.anode

Return the anode (positive terminal) of the source.

DoubleCell.cathode

Return the cathode (negative terminal) of the source.

DoubleCell.color

DoubleCell.depth

The depth of the mobject.

DoubleCell.fill_color

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

DoubleCell.height

The height of the mobject.

DoubleCell.left

Return the left-hand terminal of the component.

DoubleCell.n_points_per_curve

DoubleCell.negative

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

DoubleCell.positive

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

DoubleCell.right

Return the right-hand terminal of the component.

DoubleCell.sheen_factor

DoubleCell.stroke_color

DoubleCell.terminals

The list of terminals of the component.

DoubleCell.width

The width of the mobject.