color converter for philips hue
Project description
Philips Hue Color Converter (CIE xyY)
Converts RGB to CIE xyY for Philips Hue
from hue_color_converter import Converter
converter = Converter() # optionally provide device id or "A", "B", "C" color gamut for more accurate colors
(x, y), Y = converter.hex_to_xyy("ff00ff")
# calculated brightness is on the scale of 0-1
converter.xyy_to_hex((0.3209, 0.1541), Y=0.2848)
Click here to see which color gamuts are supported for your device.
Installing hue-color-converter
pip install hue-color-converter
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hue-color-converter-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc113ab5b7bfc9770cd078968d3d5316e044031ff7d3d1e53cb609576077bee8 |
|
MD5 | 9d1e48f50b46fd1a181f936a3e61efa7 |
|
BLAKE2b-256 | cf5f33969739af06d2a8bbe27fb46217c5d6c66beee321d5067f1352cc913b48 |
Close
Hashes for hue_color_converter-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cad1cca8befde265d388c0f2ebbf5412779f20efbb542ac5b44c55e9aaa19cc |
|
MD5 | 8e00eb3b49f4f4f8402fec8c8ef70b3d |
|
BLAKE2b-256 | 49d07a8b42904e63d240cfe0a506d85cf674ffcc49f77361822f8fa49a963090 |