Skip to main content

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.

Source Distribution

lambda2color-0.5.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file lambda2color-0.5.tar.gz.

File metadata

  • Download URL: lambda2color-0.5.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.13

File hashes

Hashes for lambda2color-0.5.tar.gz
Algorithm Hash digest
SHA256 b9cfdeb9eef597bdb4be08bcdab5d28f55842121b2faea09779caf9dbfc5de92
MD5 d75b803743f75c4a5844c7994eecbfb8
BLAKE2b-256 6b5e1f91cf7b212f3fc0cce63148ddad65f3604d82128a5b5ac2a82ef7924268

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page