Skip to main content

Interface: ToonOutlineOptions

Defined in: src/rendering/toon/toonShading.ts:40

Options for the outline (the rim stroke).

Properties​

color?​

optional color: string

Defined in: src/rendering/toon/toonShading.ts:48

Explicit outline colour (CSS colour). Sets the mode to 'color' when mode is not given.


mode?​

optional mode: ToonOutlineColorMode

Defined in: src/rendering/toon/toonShading.ts:46

Colour mode: 'darker' (dark ink), 'lighter' (bright stroke), 'same' (the mobject colour) or 'color' (the color option). Default: 'color' when color is set, else the preset mode.


opacity?​

optional opacity: number

Defined in: src/rendering/toon/toonShading.ts:55

Opacity of the outline when the body is at rest. The outline fades with the body: see Mobject3D.setToonShading.


width?​

optional width: number

Defined in: src/rendering/toon/toonShading.ts:50

Width of the rim in CSS pixels.