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
threshold: number = 1e-6Optional
maxIteration: number = 200Optional
ifReachMax: ProcType = 'error'Optional
factor: number = 0.5[Hue, Value, Chroma]
Generated using TypeDoc
Converts quantized RGB to Munsell HVC. Whether this conversion succeeds or not depends on the parameters though the following behavior is guaranteed and tested on Node.js:
If
r255
,g255
, andb255
are in {0, 1, ..., 255} and the optional parameters have default values,rgb255ToMhvc()
successfully returns Munsell HVC before maxIteration[r255, g255, b255]
.See
lchabToMhvc