-
I wrote a def that does this by roundtripping through sd with the visible range of wavelengths:
Foolish? Inefficient? I can tell you now this takes like 20 seconds, so I am hoping there is a better way. Why are you doing this, J? Because I am actually honoring the formal spec of CIELAB and allowing a* and b* to be input unbounded, but offer the option to push them back into the visible. I'm eager for your thoughts!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Actually, there's nothing improper about color stimuli that have a greater chroma value than the spectrum locus might imply. It's been seen in research! And is relatively easy to produce under the right conditions on an HDR display. |
Beta Was this translation helpful? Give feedback.
We have the
colour.is_within_visible_spectrum
definition which is relevant: https://github.com/colour-science/colour/blob/develop/colour/volume/spectrum.py#L381The hull computation is costly but only on first invocation, it is cached after that.