Skip to content

zachary822/hue_color_converter

Repository files navigation

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

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages