Skip to content
/ karafuru Public

A lightweight color picker written in Python.

License

Notifications You must be signed in to change notification settings

Ennea/karafuru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karafuru

Screenshot of karafuru

karafuru is a lightweight color picker written in Python. It supports RGB and LCH color spaces.

Requirements

If you'd like to run karafuru, you only need Python 3.5 or higher. Simply clone or download the repository and run karafuru.py. No third-party libraries are required at this point. (Note: Tkinter is required, and some Linux distributions will not bundle it with the rest of the Python standard libary. For example, on Debian, the required package is called python3-tk.)

Alternatively, if you're on Windows, check out the releases page for binary releases.

What is LCH?

LCH (lightness, chroma and hue) is a color space that is much broader than the classic RGB color space. While we currently lack monitors to actually display all these colors that do not exist within the RGB color space, the LCH color space also makes picking colors with uniform lightness a lot easier. This is the main reason I have created karafuru.

Automatic gamut correction

As stated, the LCH color space is much broader than the RGB color space. That means not all of its colors can be mapped to RGB. Therefore, karafuru will automatically reduce the chroma component when picking colors inside the LCH color space in such a way that the resulting color will fit into the RGB color space. karafuru will also display a warning when the current color is being corrected.

Credits

A big thank you and a bunch of credits go to Lea Verou and Chris Lilley. They have created a web-based LCH color picker and color.js, which the conversion code in karafuru is derived from.

About

A lightweight color picker written in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages