Interface: PolygonOptions
Defined in: mobjects/geometry/Polygon.ts:8
Options for creating a Polygon
Properties
closed?
optionalclosed:boolean
Defined in: mobjects/geometry/Polygon.ts:18
Whether to close the polygon. Default: true
color?
optionalcolor:string
Defined in: mobjects/geometry/Polygon.ts:12
Stroke color as CSS color string. Default: Manim's blue (#58C4DD)
fillOpacity?
optionalfillOpacity:number
Defined in: mobjects/geometry/Polygon.ts:14
Fill opacity from 0 to 1. Default: 0
strokeWidth?
optionalstrokeWidth: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.