Skip to contents

A rectangle with rounded corners.

Super classes

manimR::MObject -> manimR::VMobject -> RoundedRectangle

Public fields

width

Width

height

Height

corner_radius

Corner radius

Methods

Inherited methods


Method new()

Create a new RoundedRectangle

Usage

RoundedRectangle$new(
  width = 4,
  height = 2,
  corner_radius = 0.5,
  color = WHITE,
  fill_color = NULL,
  fill_opacity = 0,
  ...
)

Arguments

width

Width

height

Height

corner_radius

Corner radius

color

Color

fill_color

Fill color

fill_opacity

Fill opacity

...

Additional args


Method generate_points()

Generate rounded rectangle path

Usage

RoundedRectangle$generate_points()


Method clone()

The objects of this class are cloneable with this method.

Usage

RoundedRectangle$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.