Cross¶
Qualified name: manim.mobject.geometry.shape\_matchers.Cross
- class Cross(mobject=None, stroke_color=ManimColor('#FC6255'), stroke_width=6.0, scale_factor=1.0, **kwargs)[source]¶
Bases:
VGroupCreates a cross.
- Parameters:
mobject (Mobject | None) – The mobject linked to this instance. It fits the mobject when specified. Defaults to None.
stroke_color (ParsableManimColor) – Specifies the color of the cross lines. Defaults to RED.
stroke_width (float) – Specifies the width of the cross lines. Defaults to 6.
scale_factor (float) – Scales the cross to the provided units. Defaults to 1.
kwargs (Any)
Examples
Example: ExampleCross ¶
from manim import * class ExampleCross(Scene): def construct(self): cross = Cross() self.add(cross)
class ExampleCross(Scene): def construct(self): cross = Cross() self.add(cross)Methods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- _original__init__(mobject=None, stroke_color=ManimColor('#FC6255'), stroke_width=6.0, scale_factor=1.0, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
mobject (Mobject | None)
stroke_color (ParsableManimColor)
stroke_width (float)
scale_factor (float)
kwargs (Any)
- Return type:
None