Skip to content

cupertino-files / writeColor

Function: writeColor() ​

writeColor(color): RawMessage

Defined in: src/tsd/style.ts:56

A colour that names no space is written as sRGB rather than bare. From iWork 19 on the apps stamp a space on every colour they write — of the 8,000-plus colours at the measured fill and stroke sites in iwork19/modern/current-era corpus files, not one is bare; bare colours appear only in 2013/2016-era files. An explicit space is kept as given, P3 included.

Parameters ​

color ​

Color

Returns ​

RawMessage

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.