Skip to contents

Represents geometric shapes in a scene.

Super class

manimR::MObject -> ShapeObject

Public fields

shape_type

Type of shape

width

Shape width

height

Shape height

radius

Radius (for circles)

fill_color

Fill color

fill_opacity

Fill opacity

stroke_width

Stroke width

Methods

Inherited methods


Method new()

Create a new ShapeObject

Usage

ShapeObject$new(
  shape_type = "rectangle",
  position = c(0, 0, 0),
  color = "#FFFFFF",
  fill_color = NULL,
  width = 1,
  height = 1,
  radius = 0.5,
  stroke_width = 2,
  fill_opacity = 0.5,
  opacity = 1
)

Arguments

shape_type

Type of shape

position

Position

color

Stroke color

fill_color

Fill color

width

Width

height

Height

radius

Radius

stroke_width

Stroke width

fill_opacity

Fill opacity

opacity

Opacity


Method clone()

The objects of this class are cloneable with this method.

Usage

ShapeObject$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.