Fix RGBAToHSVA
This commit is contained in:
parent
48bfa05452
commit
a38cee8437
@ -84,7 +84,7 @@ func RGBAToHSVA (r, g, b, a uint32) HSVA {
|
|||||||
}
|
}
|
||||||
|
|
||||||
delta := maxComponent - minComponent
|
delta := maxComponent - minComponent
|
||||||
if maxComponent == 0 {
|
if delta == 0 {
|
||||||
// hsva.S is undefined, so hue doesn't matter
|
// hsva.S is undefined, so hue doesn't matter
|
||||||
return hsva
|
return hsva
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user