writtenColour
Turns a parsed Colour back into the text an author would write, the inverse of parseColour.
@internote/canvas-sdkOn this page
import { writtenColour } from '@internote/canvas-sdk';What the refiners store, so that what a document carries is the canonical spelling rather than whatever spacing and casing the author typed. A literal comes back as hex(0064fa) and not as the #0064fa its CSS uses, since a hash in a value slot is a reference to an id.
#Signature
(colour: Colour): string#Parameters
colourA colour as
parseColour returns it.Declared in packages/canvas-sdk/src/paint/colour.ts:463.