Eikkargh / HomeAssistant

Home Assistant config files
0 stars 0 forks source link

Scripts for HSL and RGB conversion dont match up. #4

Open Eikkargh opened 1 year ago

Eikkargh commented 1 year ago

RGB to HSL giving a result about 15° higher than HSL to RGB.

RGB to HSL RGB: 229,0,202 should give 307,100,45 HSL converted: 307,99,44

HSL to RGB HSL: 300,100,44 shoud give 224,0,224 RGB converted: 223,0,192 Blue value low.

RGB to HSL has a negligable difference. Error is on the HSL to RGB conversion.

Eikkargh commented 1 year ago

HSL to RGB another example HSL: 225,100,68 Expected RGB: 92,133,255 Actual RGB: 91,243,255 Green value high.

Eikkargh commented 1 year ago

HSL to RGB 3rd example HSL: 90,100,67 Expected RGB: 171,255,87 Actual RGB: 222,254,86 Red value high.