Live data from Hacker News

Exploring the Visible Spectrum in Python

codedrome.com

1–10 of 25 posts

Re: Exploring the Visible Spectrum in Python

#3

So this just draws all possible colours that can be visualised? There was entirely to much text and code for me to bother reading it all and see if it actuallt does somethig more...

Nothing can currently, without a display that was fully spectral, and that doesn’t exist.

Seems a little lean on the color science front. colour-science.org could have done all of this, with much greater focus on the science.

Re: Exploring the Visible Spectrum in Python

#5
post #3

So this just draws all possible colours that can be visualised? There was entirely to much text and code for me to bother reading it all and see if it actuallt does somethig more...

Nothing can currently, without a display that was fully spectral, and that doesn’t exist. Seems a little lean on the color science front. colour-science.org could have done all of this, with much greater focus on the science.

I would like to add that the problem with the codedrome.com implementation is that it is relying on an approximation to convert wavelengths to RGB, it is a shame because you really just need the Colour Matching Functions (CMFs) data for the Standard Observer of interest, i.e. 2deg or 10deg (https://github.com/colour-science/colour/blob/develop/colour...) and a 3x3 matrix to convert from CIE XYZ to the RGB colourspace of interest, e.g. sRGB (https://github.com/colour-science/colour/blob/develop/colour...).

Re: Exploring the Visible Spectrum in Python

#6
post #4

It shows three wavelengths correct atleast :P I still remeber when I first realized that white color from the pc-monitor is not white.

It’s better than that. There isn’t a single definition for white. Perhaps someone has one.

The best I can do, having studied Color Science at RIT, is that white is any spectral power distribution a person identifies as white. Yes, it’s a circular definition.

The topic is deeper than it might seem. I can put someone in a room and show them a color they would swear to be white. And then, in an instant, I can change that color by changing the surround, what you see peripherally. It’s freaky.

Re: Exploring the Visible Spectrum in Python

#7
post #3

So this just draws all possible colours that can be visualised? There was entirely to much text and code for me to bother reading it all and see if it actuallt does somethig more...

Nothing can currently, without a display that was fully spectral, and that doesn’t exist. Seems a little lean on the color science front. colour-science.org could have done all of this, with much greater focus on the science.

No. We are not display-bound. There are tunable lasers and optical parametric oscillators commercially available that will output a specific frequency under computer control, throughout the visible spectrum. There are also frequency comb laser devices that emit a picket fence of frequencies, spanning the visible spectrum, each with a precisely known frequency. Tunable laser sources exist from the far infrared to the vacuum ultraviolet.

Re: Exploring the Visible Spectrum in Python

#8
post #4

It shows three wavelengths correct atleast :P I still remeber when I first realized that white color from the pc-monitor is not white.

It’s better than that. There isn’t a single definition for white. Perhaps someone has one. The best I can do, having studied Color Science at RIT, is that white is any spectral power distribution a person identifies as white. Yes, it’s a circular definition. The topic is deeper than it might seem. I can put someone in a room and show them a color they would swear to be white. And then, in an instant, I can change tha…

Did the course use a particular text? As an oil painter I'm interested in rigorous color science, but I have no affiliation with a university.

Re: Exploring the Visible Spectrum in Python

#9
The use of a fill chart type is confusing, it's only accurate at the line at the top of the chart.

There's also something odd to me about how one chart appears to be polynomial and the other linear.

Lastly the mapping of RGB value to the frequency on the chart is inconsistent between the two charts. In the first we see 255,0,0 at ~480THz and in the second at over 500THz

In short, neat concept but I think the output needs a little validation.

Re: Exploring the Visible Spectrum in Python

#10
post #7
post #3

Earlier quoted context omitted.

Nothing can currently, without a display that was fully spectral, and that doesn’t exist. Seems a little lean on the color science front. colour-science.org could have done all of this, with much greater focus on the science.

No. We are not display-bound. There are tunable lasers and optical parametric oscillators commercially available that will output a specific frequency under computer control, throughout the visible spectrum. There are also frequency comb laser devices that emit a picket fence of frequencies, spanning the visible spectrum, each with a precisely known frequency. Tunable laser sources exist from the far infrared to the…

I think it's fair to say that, as far as commercially available consumer computer displays are concerned (and thus anything relevant to anyone viewing the OP website), we are indeed display-bound.
Post reply on HN