Skip to main content

Interface: PolygonOptions

Defined in: mobjects/geometry/Polygon.ts:8

Options for creating a Polygon

Properties

closed?

optional closed: boolean

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

Whether to close the polygon. Default: true


color?

optional color: string

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

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


fillOpacity?

optional fillOpacity: number

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

Fill opacity from 0 to 1. Default: 0


strokeWidth?

optional strokeWidth: number

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

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


vertices

vertices: Vector3Tuple[]

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

Array of vertices defining the polygon. Required.