Skip to content

Why does "colour.wavelength_to_XYZ" definition returns values outside expected range? #746

Answered by KevinJW
LeCyberDucky asked this question in Q&A
Discussion options

You must be logged in to vote

if all you want is the 'approximate colours' that are used in that function you could extract just the beginning of that function up to the point it generates the colours object (about half way through the function

colours = normalise_maximum(colours)
)

As was mentioned above there is an adjustment being made to bring the colours in gamut for an sRGB device, as pretty much none of the wavelength buckets are likely to fall inside sRGB.

Kevin

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #595 on January 16, 2021 22:59.