Skip to content
Spreadsheet Editor

Color

type Color =
| SrgbColor
| ScRgbColor
| HslColor
| SystemColor
| SchemeColor
| PresetColor
| AutoColor
| IndexedColor & {
transforms?: ColorTransform[];
};
optional transforms?: ColorTransform[];

Optional list of colour transformations to apply to the base colour.

The transformations must be applied in order, and each transformation must be applied to the result of the previous one. There can be multiple transformations of the same type.

The transformations are defined by ColorTransform, which includes operations such as tinting, shading, and saturation adjustments.