Function rgbToMhvc

  • Converts gamma-corrected RGB to Munsell HVC.

    See

    lchabToMhvc

    Parameters

    • r: number

      will be in [0, 1] though any real number is accepted and properly processed as an out-of-gamut color.

    • g: number

      ditto.

    • b: number

      ditto.

    • Optional rgbSpace: RGBSpace = SRGB
    • Optional threshold: number = 1e-6
    • Optional maxIteration: number = 200
    • Optional ifReachMax: ProcType = 'error'
    • Optional factor: number = 0.5

    Returns Vector3

    [Hue, Value, Chroma]

Generated using TypeDoc