Function labToLch

  • Convert the given CIELAB or CIELUV color to a CIELCh(ab) or CIELCh(uv) (respectively) color. Based on the EasyRGB pseudo-code.

    Parameters

    • color: Lab | Luv

      The CIELAB or CIELUV color.

    Returns Lch

    A CIELCh color.