Skip to main content

Interface: SurroundingRectangleOptions

Defined in: mobjects/geometry/ShapeMatchers.ts:152

Options for creating a SurroundingRectangle

Properties

buff?

optional buff: number

Defined in: mobjects/geometry/ShapeMatchers.ts:154

Padding around the mobject. Default: 0.2


color?

optional color: string

Defined in: mobjects/geometry/ShapeMatchers.ts:156

Stroke color. Default: YELLOW


cornerRadius?

optional cornerRadius: number

Defined in: mobjects/geometry/ShapeMatchers.ts:158

Corner radius for rounded corners. Default: 0 (sharp corners)


fillOpacity?

optional fillOpacity: number

Defined in: mobjects/geometry/ShapeMatchers.ts:162

Fill opacity. Default: 0 (no fill)


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/geometry/ShapeMatchers.ts:160

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