Skip to main content

Interface: RoundedRectangleOptions

Defined in: mobjects/geometry/PolygonExtensions.ts:9

Options for creating a RoundedRectangle

Properties

center?

optional center: Vector3Tuple

Defined in: mobjects/geometry/PolygonExtensions.ts:23

Center position. Default: [0, 0, 0]


color?

optional color: string

Defined in: mobjects/geometry/PolygonExtensions.ts:17

Stroke color as CSS color string. Default: Manim's blue (#58C4DD)


cornerRadius?

optional cornerRadius: number

Defined in: mobjects/geometry/PolygonExtensions.ts:15

Corner radius. Default: 0.25


fillOpacity?

optional fillOpacity: number

Defined in: mobjects/geometry/PolygonExtensions.ts:19

Fill opacity from 0 to 1. Default: 0


height?

optional height: number

Defined in: mobjects/geometry/PolygonExtensions.ts:13

Height of the rectangle. Default: 1


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/geometry/PolygonExtensions.ts:21

Stroke width in pixels. Default: 4 (Manim's default)


width?

optional width: number

Defined in: mobjects/geometry/PolygonExtensions.ts:11

Width of the rectangle. Default: 2