ClipMethod

enum ClipMethod : Enum<OklabGamut.ClipMethod>

Gamut clipping method to use. Hue is always preserved, regardless of the method chosen here.

Entries

ADAPTIVE_TOWARDS_LCUSP
Link copied to clipboard

A mix of lightness-preserving chroma reduction and projecting towards neutral gray with max chroma.

ADAPTIVE_TOWARDS_MID
Link copied to clipboard

A mix of lightness-preserving chroma reduction and projecting towards neutral 50% gray.

PROJECT_TO_LCUSP
Link copied to clipboard

Project towards neutral gray at the lightness with the most possible chroma for this hue.

PROJECT_TO_MID
Link copied to clipboard

Project towards neutral 50% gray.

PRESERVE_LIGHTNESS
Link copied to clipboard

Preserve the target lightness (e.g. for contrast) by reducing chroma.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int