Diode

class manim_eng.components.diodes.Diode(left: Terminal | None = None, right: Terminal | None = None, **kwargs: Any)

Bases: SquareBipole

Circuit symbol for a diode.

Attributes

Diode.animate

Used to animate the application of any method of self.

Diode.animation_overrides

Diode.anode

Return the anode (positive terminal) of the diode.

Diode.cathode

Return the cathode (negative terminal) of the diode.

Diode.color

Diode.depth

The depth of the mobject.

Diode.fill_color

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

Diode.height

The height of the mobject.

Diode.left

Return the left-hand terminal of the component.

Diode.n_points_per_curve

Diode.negative

Return the negative terminal of the diode.

Diode.positive

Return the positive terminal of the diode.

Diode.right

Return the right-hand terminal of the component.

Diode.sheen_factor

Diode.stroke_color

Diode.terminals

The list of terminals of the component.

Diode.width

The width of the mobject.

property anode: Terminal

Return the anode (positive terminal) of the diode.

property cathode: Terminal

Return the cathode (negative terminal) of the diode.

property negative: Terminal

Return the negative terminal of the diode.

property positive: Terminal

Return the positive terminal of the diode.