Fix RGBAToHSVA

This commit is contained in:
Sasha Koshka 2024-06-25 02:32:00 -04:00
parent 48bfa05452
commit a38cee8437

View File

@ -84,7 +84,7 @@ func RGBAToHSVA (r, g, b, a uint32) HSVA {
}
delta := maxComponent - minComponent
if maxComponent == 0 {
if delta == 0 {
// hsva.S is undefined, so hue doesn't matter
return hsva
}