keyPaint

A swatch's two paints from a colour value: a hue's pale step filled and its deep step outlined; a literal colour, which has no steps, a pale mix of itself filled and itself outlined. Every swatch — disc, marker, line — is painted from this, so a colour reads the same in each.

@internote/canvas-sdk/reactFunction
On this page
import { keyPaint } from '@internote/canvas-sdk/react';

#Signature

(colour: string): { fill: string; stroke: string; }

#Parameters

colour
A colour value, as a key entry carries it.

Declared in packages/canvas-sdk/src/react/footer-key.tsx:47.

Last updated