This is a simple library to transform a given light wavelength into the corresponding RGB color.
Project description
![license](https://img.shields.io/badge/license-MIT-blue) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/laurentperrinet/lambda2color/main) [![PyPI version](https://badge.fury.io/py/LogGabor.svg)](https://badge.fury.io/py/LogGabor)
# lambda2color: convert a given light wavelength into the corresponding RGB color
This is a simple library to transform a given light wavelength into the corresponding RGB color.
It is based on the different sensitivities to a novel color space called the [CIE 193 “ XYZ” color space](https://en.wikipedia.org/wiki/CIE_1931_color_space) and defined by the CIE colour matching function for 380 - 780 nm in 5 nm intervals :
![cmf.png](CIE colour matching function)
This allows to simply compute for instance the color of different monochromatic lights:
![spectrum.png](Rainbow)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.