DiamondOuter¶
- class manim_eng.components.base.modifiers.DiamondOuter(terminals: list[Terminal], label: str | Value | None = None, annotation: str | Value | None = None, **kwargs: Any)¶
Bases:
ComponentModifier to add a diamond outline to a component.
The distance between opposite points of the outline is equal to the side length of a square bipole.
Attributes
DiamondOuter.animateUsed to animate the application of any method of
self.DiamondOuter.animation_overridesDiamondOuter.colorDiamondOuter.depthThe depth of the mobject.
DiamondOuter.fill_colorIf there are multiple colors (for gradient) this returns the first one
DiamondOuter.heightThe height of the mobject.
DiamondOuter.n_points_per_curveDiamondOuter.sheen_factorDiamondOuter.stroke_colorDiamondOuter.terminalsThe list of terminals of the component.
DiamondOuter.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.