Mark

class manim_eng._base.mark.Mark(anchor: Anchor, centre_reference: Anchor)

Bases: VMobject

A mark object, representing any textual annotation on a component.

Parameters:
  • anchor (Anchor) – The anchor to use as a base for the attachment of the mark.

  • centre_reference (Anchor) – The anchor to use as a reference; the mark will be kept aligned to anchor, attached to the side directly opposite the side centre_reference is on.

See also

anchor.Anchor

Attributes

Mark.animate

Used to animate the application of any method of self.

Mark.animation_overrides

Mark.color

Mark.depth

The depth of the mobject.

Mark.fill_color

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

Mark.height

The height of the mobject.

Mark.n_points_per_curve

Mark.sheen_factor

Mark.stroke_color

Mark.tex_strings

Mark.width

The width of the mobject.

change_anchors(anchor: Anchor, centre_reference: Anchor) None

Change the anchors to which the mark is attached.

Parameters:
  • anchor (Anchor) – The anchor to use as a base for the attachment of the mark.

  • centre_reference (Anchor) – The anchor to use as a reference; the mark will be kept aligned to anchor, attached to the side directly opposite the side centre_reference is on.

set_text(*args: Any, font_size: float = 36.0, **kwargs: Any) Self

Set the text of the mark.

Parameters:
  • *args (Any) – Positional arguments to be pass on to manim.MathTex. The most important of these is *tex_strings, i.e. the actual TeX math mode strings to use as the mark’s text.

  • font_size (float) – The font size to use for the mark. Leaving it empty adopts the default (recommended).

  • **kwargs (Any) – Keyword arguments to pass on to manim.MathTex.