@mocanvas/mocanvas · function
declare function getFillRgba(color: DefaultColorStyle, fill: DefaultFillStyle, colors?: TLThemeColors): numberEngine RGBA for a shape's interior. 0 means "no fill".
The fill *styles* and the palette *tokens* share names but are one step
apart, which is easy to get wrong: semi paints the paper colour with a
barely-there tint, solid paints the hue's pale tint (the semi token),
and only fill paints the hue at full strength (the solid token). That
table is stated once, in DEFAULT_FILL_TOKENS, and read here rather than
restated — the stroke always uses the full-strength colour, so a solid
fill reads as a pale body inside a saturated outline.
Mentioned here
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.