will be in {0, 1, ..., 255} though any integer is accepted and properly processed as an out-of-gamut color.
ditto.
ditto.
Optional
rgbSpace: RGBSpace = SRGBOptional
digits: number = 1is 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-6Optional
maxIteration: number = 200Optional
ifReachMax: ProcType = 'error'Optional
factor: number = 0.5Munsell Color code
Generated using TypeDoc
Converts quantized RGB to Munsell Color string. Whether this conversion succeeds or not depends on the parameters though the following behaviour is guaranteed and tested on Node.js:
If
r255
,g255
,b255
are in {0, 1, ..., 255} and the optional parameters exceptdigits
have defaultvalues,rgb255ToMunsell()
successfully returns a Munsell Color string beforemaxIteration
.See
lchabToMhvc