doc fix
This commit is contained in:
parent
5e909b3f88
commit
ea2ed1bcd5
2
util.go
2
util.go
|
@ -2,7 +2,7 @@ package pixel
|
|||
|
||||
import "image/color"
|
||||
|
||||
// colorToRGBA converts a color from image/color to RGBA components in interval [0, 1)
|
||||
// colorToRGBA converts a color from image/color to RGBA components in interval [0, 1].
|
||||
func colorToRGBA(c color.Color) (r, g, b, a float64) {
|
||||
ri, gi, bi, ai := c.RGBA()
|
||||
r = float64(ri) / 0xffff
|
||||
|
|
Loading…
Reference in New Issue