writtenPaint

A colour value as the text an author writes: a name as it is, a compiled literal { r, g, b } as rgb(r, g, b). Anything else comes back as it is.

@internote/canvas-sdkFunction
On this page
import { writtenPaint } from '@internote/canvas-sdk';

#Signature

(value: unknown): unknown

#Parameters

value
A compiled colour value.

#Example

writtenPaint({ r: 255, g: 0, b: 0 }); // 'rgb(255, 0, 0)'

Declared in packages/canvas-sdk/src/paint/colour.ts:211.

Last updated