@mocanvas/mocanvas · interface

BrushOverlayUtilDisplayValues

interface BrushOverlayUtilDisplayValues

The paint a brush is drawn with, resolved against the live theme.

Separate from the options so an app can restyle *one* of them: overriding getCustomDisplayValues changes the colours and leaves the geometry alone, while configure({ radius }) changes the geometry and leaves the theme in charge of the colours.


Properties · 2

fill: string

Interior colour, including its alpha.

stroke: string

Outline colour.

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.