Interface ChannelSpec

interface ChannelSpec {
    hue?: boolean;
    range?: Range;
}

Properties

Properties

hue?: boolean

If true, this channel is used to store normalized hue values.

Default Value

false
range?: Range

Acceptable approximate value range for this color channel. Used by TypedColor.clamp and TypedColor.randomize. At current and for compatibility reasons, the "valid" ranges for each color channel are configured such that they combined only approximately cover the full sRGB gamut (even though some color modes have gamuts larger than that). However, due to only using individual per-channel/per-axis definitions for those value ranges, it's still possible for colors in those larger color spaces to be slightly outside that sRGB gamut. These are soft limits, for orientation only.

Default Value

[0,1]

Generated using TypeDoc