Cross

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

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

Bases: manim.mobject.types.vectorized_mobject.VGroup

Creates a cross.

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

  • stroke_color (colour.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 a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.