[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-questions
Subject: [solved] [OT] Light frequency or wavelength to (eg RGB) colour
From: Ian Smith <smithi () nimnet ! asn ! au>
Date: 2015-12-30 16:40:18
Message-ID: 20151231033050.R8562 () sola ! nimnet ! asn ! au
[Download RAW message or body]
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
_______________________________________________
freebsd-questions@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic