Skip to content

A simple library to transform a given light wavelength into the corresponding RGB color.

License

Notifications You must be signed in to change notification settings

laurentperrinet/lambda2color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license Binder PyPI version

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 and defined by the CIE colour matching function for 380 - 780 nm in 5 nm intervals :

CIE colour matching function

This allows to simply compute for instance the color of different monochromatic lights:

Rainbow

For more advanced uses, see for instance this blog post computing the color of the sky.

About

A simple library to transform a given light wavelength into the corresponding RGB color.

Resources

License

Stars

Watchers

Forks

Packages

No packages published