fix typo in Alpha doc
This commit is contained in:
parent
05da8e6f92
commit
ab9d608c45
2
color.go
2
color.go
|
@ -17,7 +17,7 @@ func RGB(r, g, b float64) RGBA {
|
||||||
return RGBA{r, g, b, 1}
|
return RGBA{r, g, b, 1}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alpha returns a while RGBA color with the given alpha component.
|
// Alpha returns a white RGBA color with the given alpha component.
|
||||||
func Alpha(a float64) RGBA {
|
func Alpha(a float64) RGBA {
|
||||||
return RGBA{a, a, a, a}
|
return RGBA{a, a, a, a}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue