Function linearRgbToMunsell

  • Converts linear RGB to Munsell Color string.

    See

    lchabToMhvc

    Parameters

    • lr: number

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

    • lg: number

      ditto.

    • lb: number

      ditto.

    • Optional rgbSpace: RGBSpace = SRGB
    • Optional digits: number = 1

      is the number of digits after the decimal point. Must be non-negative integer. Note that the units digit of the hue prefix is assumed to be already after the decimal point.

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

    Returns string

    Munsell Color code

Generated using TypeDoc