okhsl

    Allows editing the color with Hue/Saturation/Lightness sliders.

    ColorPicker.swift:36
    case okhsl

    OKHSL is a new color space similar to HSL but that better match perception by leveraging the Oklab color space which is designed to be simple to use, while doing a good job at predicting perceived lightness, chroma and hue.

    Okhsv and Okhsl color spaces

    Other cases

    • case rgb

      Allows editing the color with Red/Green/Blue sliders.

    • case hsv

      Allows editing the color with Hue/Saturation/Value sliders.

    • case raw

      Allows the color R, G, B component values to go beyond 1.0, which can be used for certain special operations that require it (like tinting without darkening or rendering sprites in HDR).