chroma-py


License
MIT
Install
pip install chroma-py==0.1.0.dev1

Documentation

Chroma

Installation

pip install chroma-py

Usage

from chroma import Color, Scale

yellow = Color([255, 255, 0]) # yellow
navy = Color([0, 0, 128]) # navy

rgb_scale = Scale(yellow, navy)
print(rgb_scale(0.5))

lab_scale = Scale(yellow.to_lab(), navy.to_lab())
print(lab_scale(0.5))