Skip to content

GrayscaleOptions

type GrayscaleOptions = {
hue: number;
shade?: -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4;
tint: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
};

Controls the grayscale palette derived from the given hue.

hue: number;

Hue in degrees (0–360).


optional shade: -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4;

Optional shade adjustment applied to the palette.


tint: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;

Tint step applied to the grayscale palette.