Browse Source

fix xy color conversion using srgb instead of rgb.

feature-colorvalue2 3.7.1
Gisle Aune 3 years ago
parent
commit
c72a7c3f43
  1. 2
      models/colorxy.go

2
models/colorxy.go

@ -177,7 +177,7 @@ func hsToXY(hue, sat float64) ColorXY {
green := float64(green255) / 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 {

Loading…
Cancel
Save