colour-science / colour

Colour Science for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
2.1k stars 260 forks source link

Add is_within_visible_xy implementation #1219

Open tjdcs opened 11 months ago

tjdcs commented 11 months ago

Add an xy implementation to is_within_visible_spectrum for brightness invariant checking.

KelSolaar commented 11 months ago

I think that I would prefer a dedicated separate public definition instead of magic based on the shape. What about something like renaming the current one to is_within_visible_spectrum_volume and the xy one is_within_visible_spectrum_area?

Cheers,