Skip to content

Paint

How a shape is painted: fill, outline, shadow or glow. Colours are CSS.

optional fill?: string

The fill colour; none without it.


optional stroke?: string

The outline colour; none without it.


optional lw?: number

Outline width, stage units.


optional outlineBelow?: boolean

The outline under the fill (only its outer half shows), as when a path is stroked before it is filled.


optional shadow?: object

A soft shadow or glow around the shape: colour and blur radius (stage units), optional offset.

color: string

blur: number

optional x?: number

optional y?: number