adjust RGB doc
This commit is contained in:
parent
a081d5b0c8
commit
9df8a3761b
3
color.go
3
color.go
|
@ -10,6 +10,9 @@ type RGBA struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// RGB returns a fully opaque RGBA color with the given RGB values.
|
// RGB returns a fully opaque RGBA color with the given RGB values.
|
||||||
|
//
|
||||||
|
// A common way to construct a transparent color is to create one with RGB constructor, then
|
||||||
|
// multiply it by a color obtained from the Alpha constructor.
|
||||||
func RGB(r, g, b float64) RGBA {
|
func RGB(r, g, b float64) RGBA {
|
||||||
return RGBA{r, g, b, 1}
|
return RGBA{r, g, b, 1}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue