Skip to main content

Interface: CutoutOptions

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

Options for creating a Cutout

Properties

color?

optional color: string

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

Stroke color as CSS color string. Default: inherits from outer shape


fillOpacity?

optional fillOpacity: number

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

Fill opacity from 0 to 1. Default: inherits from outer shape


innerShape

innerShape: VMobject

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

The inner shape (the hole, must be a VMobject). Required.


outerShape

outerShape: VMobject

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

The outer shape (must be a VMobject). Required.


strokeWidth?

optional strokeWidth: number

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

Stroke width in pixels. Default: inherits from outer shape