do actually need to check that the ranges are set
This commit is contained in:
parent
7a3d6a6915
commit
ee78cf8f2f
2 changed files with 7 additions and 5 deletions
|
|
@ -183,11 +183,6 @@ var (
|
|||
DashArrayDashesLarge = []int{10, 10}
|
||||
)
|
||||
|
||||
// NewColor returns a new color.
|
||||
func NewColor(r, g, b, a uint8) drawing.Color {
|
||||
return drawing.Color{R: r, G: g, B: b, A: a}
|
||||
}
|
||||
|
||||
// GetDefaultColor returns a color from the default list by index.
|
||||
// NOTE: the index will wrap around (using a modulo).
|
||||
func GetDefaultColor(index int) drawing.Color {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue