Cross#

Qualified name: manim.mobject.geometry.shape\_matchers.Cross

class Cross(mobject=None, stroke_color='#FC6255', stroke_width=6, scale_factor=1, **kwargs)[source]#

Bases: VGroup

Creates a cross.

Parameters
  • mobject (Mobject | None) – The mobject linked to this instance. It fits the mobject when specified. Defaults to None.

  • stroke_color (Color) – 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.

Examples

Example: ExampleCross

../_images/ExampleCross-1.png
from manim import *

class ExampleCross(Scene):
    def construct(self):
        cross = Cross()
        self.add(cross)

Methods

Attributes

animate

Used to animate the application of any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

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

height

The height of the mobject.

n_points_per_curve

sheen_factor

stroke_color

width

The width of the mobject.