fix typo in ToRGBA doc
This commit is contained in:
parent
bf6e20a04b
commit
bc08b65073
2
color.go
2
color.go
|
@ -75,7 +75,7 @@ func (c RGBA) RGBA() (r, g, b, a uint32) {
|
|||
}
|
||||
|
||||
// ToRGBA converts a color to RGBA format. Using this function is preferred to using RGBAModel, for
|
||||
// performance (using RGBAModel introduced additional unnecessary allocations).
|
||||
// performance (using RGBAModel introduces additional unnecessary allocations).
|
||||
func ToRGBA(c color.Color) RGBA {
|
||||
if c, ok := c.(RGBA); ok {
|
||||
return c
|
||||
|
|
Loading…
Reference in New Issue