fix xy color conversion using srgb instead of rgb.
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-18 17:01:37 +01:00
parent 8a20bab709
commit c72a7c3f43
+1 -1
View File
@@ -177,7 +177,7 @@ func hsToXY(hue, sat float64) ColorXY {
green := float64(green255) / 255.0 green := float64(green255) / 255.0
blue := float64(blue255) / 255.0 blue := float64(blue255) / 255.0
return screenRGBToXY(red, green, blue) return rgbToXY(red, green, blue)
} }
func rgbToXY(red float64, green float64, blue float64) ColorXY { func rgbToXY(red float64, green float64, blue float64) ColorXY {