Fix incorrect alpha values returned by NRGB color model

This commit is contained in:
Kovid Goyal
2025-10-09 11:39:39 +05:30
parent 298daa4e83
commit 127459012a

View File

@@ -25,7 +25,7 @@ func (c NRGBColor) RGBA() (r, g, b, a uint32) {
g |= g << 8
b = uint32(c.B)
b |= b << 8
a = 65280 // ( 255 << 8 )
a = 65535 // (255 << 8 | 255)
return
}