Skip to main content

No project description provided

Project description

Philips Hue Color Converter (CIE xy)

from hue_color_converter import Converter

converter = Converter()  # optionally provide device id or "A", "B", "C" color gamut for more accurate colors

(x, y), brightness = converter.hex_to_xyb("ff00ff")
# calculated brightness is on the scale of 0-1

converter.xyb_to_hex(x=0.3209, y=0.1541, brightness=1)

Click here to see which color gamuts are supported for your device.

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

hue-color-converter-0.1.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

hue_color_converter-0.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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