Skip to contents

A closed polygon defined by vertex positions.

Super classes

manimR::MObject -> manimR::VMobject -> Polygon

Public fields

vertices

Matrix of vertices

Methods

Inherited methods


Method new()

Create a new Polygon

Usage

Polygon$new(..., color = WHITE, fill_color = NULL, fill_opacity = 0)

Arguments

...

Vertex positions as vectors, or a single matrix

color

Color

fill_color

Fill color

fill_opacity

Fill opacity


Method generate_points()

Generate Bezier path from vertices

Usage

Polygon$generate_points()


Method clone()

The objects of this class are cloneable with this method.

Usage

Polygon$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.