Skip to contents

Represents plain text in a scene.

Represents text in a scene.

Super class

manimR::MObject -> TextObject

Public fields

text

The text content

font

Font family

size

Font size in points

weight

Font weight

Super class

manimR::MObject -> TextObject

Public fields

text

The text content

font

Font family

size

Font size

weight

Font weight

Methods

Inherited methods


Method new()

Create a new TextObject

Usage

TextObject$new(
  text,
  position = c(0, 0, 0),
  size = 48,
  color = "#FFFFFF",
  font = "sans",
  weight = "normal",
  opacity = 1
)

Arguments

text

Text content

position

Position

size

Font size

color

Text color

font

Font family

weight

Font weight

opacity

Opacity


Method get_text()

Get the text content

Usage

TextObject$get_text()


Method clone()

The objects of this class are cloneable with this method.

Usage

TextObject$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.