ijlyttle / colorpath

Build Color Paths
https://ijlyttle.github.io/colorpath
Other
0 stars 0 forks source link

chroma floor #25

Closed ijlyttle closed 3 years ago

ijlyttle commented 4 years ago

Converting from an HCL data frame, as_mat_luv() has a default chroma_min of 0.01. This is done so that we can preserve the hue information when the chroma is zero.

In practice, we this "gap" will have no perceptual difference.

In theory, we should be able to set the floor much lower, e.g. 1.e-6. There seems to be some rounding errors introduced by the farver color-conversion functions. Given that HCL <-> LUV is a polar transformation, we should be able to do this ourselves without risk.

ijlyttle commented 3 years ago

part of #44