EuropeanCurrentSourceBase¶
- class manim_eng.components.base.source.EuropeanCurrentSourceBase(current: str | None = None, **kwargs: Any)¶
Bases:
CurrentSourceBaseBase class for all European current sources.
Implements the setting of current on the positive terminal that is unique to European sources, as well as the internal symbol of European current sources.
Designed to be used in conjunction with the
RoundOuterandDiamondOutermodifiers, to produce standard and controlled sources.See also
modifiers.RoundOuter,modifiers.DiamondOuterAttributes
EuropeanCurrentSourceBase.animateUsed to animate the application of any method of
self.EuropeanCurrentSourceBase.animation_overridesEuropeanCurrentSourceBase.anodeReturn the anode (positive terminal) of the source.
EuropeanCurrentSourceBase.cathodeReturn the cathode (negative terminal) of the source.
EuropeanCurrentSourceBase.colorEuropeanCurrentSourceBase.depthThe depth of the mobject.
EuropeanCurrentSourceBase.fill_colorIf there are multiple colors (for gradient) this returns the first one
EuropeanCurrentSourceBase.heightThe height of the mobject.
EuropeanCurrentSourceBase.leftReturn the left-hand terminal of the component.
EuropeanCurrentSourceBase.n_points_per_curveEuropeanCurrentSourceBase.negativeReturn the negative (left-hand) terminal of the source.
EuropeanCurrentSourceBase.positiveReturn the positive (right-hand) terminal of the source.
EuropeanCurrentSourceBase.rightReturn the right-hand terminal of the component.
EuropeanCurrentSourceBase.sheen_factorEuropeanCurrentSourceBase.stroke_colorEuropeanCurrentSourceBase.terminalsThe list of terminals of the component.
EuropeanCurrentSourceBase.widthThe 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 baseComponentclass 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.