[solved] [OT] Light frequency or wavelength to (eg RGB) colour
Ian Smith
smithi at nimnet.asn.au
Wed Dec 30 16:40:23 UTC 2015
On Wed, 30 Dec 2015 08:49:41 -0700, Warren Block wrote:
> On Thu, 31 Dec 2015, Ian Smith wrote:
>
> > does anyone know of a method - preferably a formula - for converting
> > known frequencies (or complementarily, their wavelengths) within the
> > visible spectrum to its colour rendition in RGB, CMYK or whatever?
>
> http://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb
>
> The first answer supplies as many formulas as anyone might want. Scroll down
> and there is a Pascal routine to actually do the conversion.
Thanks Warren .. indeed that leads into quite a number of rabbit holes.
Thanks also to Roland Smith who sent me offlist (due to OT :) a link to
his neat rendition in Python from apparently the same Pascal code:
https://github.com/rsmith-nl/wavelength_to_rgb
Thanks again folks; much easier than I thought this was going to be.
cheers, Ian
More information about the freebsd-questions
mailing list