Skip to main content

Interface: RoundedRectangleOptions

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

Options for creating a RoundedRectangle

Properties

center?

optional center: Vector3Tuple

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

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


color?

optional color: string

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

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


cornerRadius?

optional cornerRadius: number

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

Corner radius. Default: 0.25


fillOpacity?

optional fillOpacity: number

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

Fill opacity from 0 to 1. Default: 0


height?

optional height: number

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

Height of the rectangle. Default: 1


strokeWidth?

optional strokeWidth: number

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

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


width?

optional width: number

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

Width of the rectangle. Default: 2