mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-25 13:48:53 +08:00
Added RGBA constructor.
This commit is contained in:
parent
29b701ce7b
commit
a2d0a4b5ce
@ -23,6 +23,12 @@ func RGB(r, g, b uint8) Color {
|
||||
return Color{r, g, b, 255, false}
|
||||
}
|
||||
|
||||
// RGBA constructs a new RGBA color with a given red, green, blue and alpha
|
||||
// value.
|
||||
func RGBA(r, g, b, a uint8) Color {
|
||||
return Color{r, g, b, a, false}
|
||||
}
|
||||
|
||||
// IsAuto returns true if the color is the 'Auto' type. If the
|
||||
// field doesn't support an Auto color, then black is used.
|
||||
func (c Color) IsAuto() bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user