@mocanvas/editor · interface

ScribbleSessionOptions

interface ScribbleSessionOptions

How a scribble looks and how it fades. Every field has a default.


Properties · 6

color?: string

Stroke colour, as a theme colour name or CSS colour.

delay?: number

Milliseconds before the tail starts to disappear.

opacity?: number

0..1.

shrink?: number

How many points are shed per tick once the tail is shrinking.

size?: number

Stroke width in page units.

taper?: boolean

Taper the tail to a point rather than cutting it square.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.