CurrentSourceBase¶
- class manim_eng.components.base.source.CurrentSourceBase(current: str | None = None, **kwargs: Any)¶
Bases:
SourceBase class of all current sources.
Attributes
CurrentSourceBase.animateUsed to animate the application of any method of
self.CurrentSourceBase.animation_overridesCurrentSourceBase.anodeReturn the anode (positive terminal) of the source.
CurrentSourceBase.cathodeReturn the cathode (negative terminal) of the source.
CurrentSourceBase.colorCurrentSourceBase.depthThe depth of the mobject.
CurrentSourceBase.fill_colorIf there are multiple colors (for gradient) this returns the first one
CurrentSourceBase.heightThe height of the mobject.
CurrentSourceBase.leftReturn the left-hand terminal of the component.
CurrentSourceBase.n_points_per_curveCurrentSourceBase.negativeReturn the negative (left-hand) terminal of the source.
CurrentSourceBase.positiveReturn the positive (right-hand) terminal of the source.
CurrentSourceBase.rightReturn the right-hand terminal of the component.
CurrentSourceBase.sheen_factorCurrentSourceBase.stroke_colorCurrentSourceBase.terminalsThe list of terminals of the component.
CurrentSourceBase.widthThe width of the mobject.