Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2015 03:40:18 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Warren Block <wblock@wonkity.com>
Cc:        Roland Smith <rsmith@xs4all.nl>, freebsd-questions@freebsd.org
Subject:   [solved] [OT] Light frequency or wavelength to (eg RGB) colour
Message-ID:  <20151231033050.R8562@sola.nimnet.asn.au>
In-Reply-To: <alpine.BSF.2.20.1512300846440.68347@wonkity.com>
References:  <20151231012759.I8562@sola.nimnet.asn.au> <alpine.BSF.2.20.1512300846440.68347@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151231033050.R8562>