Fix color util links to Philips Hue documentation (#57099)

pull/57112/head
Boris K 2021-10-05 11:19:09 +02:00 committed by GitHub
parent f548d1dba7
commit 8b02703585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ def color_RGB_to_xy(
# Taken from:
# http://www.developers.meethue.com/documentation/color-conversions-rgb-xy
# https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/blob/00187a3/ApplicationDesignNotes/RGB%20to%20xy%20Color%20conversion.md
# License: Code is given as is. Use at your own risk and discretion.
def color_RGB_to_xy_brightness(
iR: int, iG: int, iB: int, Gamut: GamutType | None = None
@ -268,7 +268,7 @@ def color_xy_to_RGB(
# Converted to Python from Obj-C, original source from:
# http://www.developers.meethue.com/documentation/color-conversions-rgb-xy
# https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX/blob/00187a3/ApplicationDesignNotes/RGB%20to%20xy%20Color%20conversion.md
def color_xy_brightness_to_RGB(
vX: float, vY: float, ibrightness: int, Gamut: GamutType | None = None
) -> tuple[int, int, int]: