Documentation ¶
Index ¶
- Variables
- func ColorAverage(c ...color.Color) color.Color
- func ColorAverageImage(i image.Image) color.Color
- func ColorRGBAToHex(c color.RGBA) string
- func ColorToHex(c color.Color) string
- func GetGoogleChartColors() []color.RGBA
- func GoogleChartColorX(index uint64) color.RGBA
- func MustParse(input string) color.RGBA
- func Parse(colorName string) (color.RGBA, error)
- func ParseGoogle(googString string) (color.RGBA, error)
- func ParseHex(hexRGB string) (color.RGBA, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var GoogleChartColors = GetGoogleChartColors()
View Source
var GoogleChartColorsHex = [...]string{
"#3366CC",
"#DC3912",
"#FF9900",
"#109618",
"#990099",
"#3B3EAC",
"#0099C6",
"#DD4477",
"#66AA00",
"#B82E2E",
"#316395",
"#994499",
"#22AA99",
"#AAAA11",
"#6633CC",
"#E67300",
"#8B0707",
"#329262",
"#5574A6",
"#3B3EAC",
}
ChartColor1 is the color palette for Google Charts as collected by Craig Davis here: https://gist.github.com/there4/2579834
Functions ¶
func ColorRGBAToHex ¶ added in v0.33.1
func ColorToHex ¶
ColorToHex returns 6 byte hex code in lower case.
func GetGoogleChartColors ¶
func GoogleChartColorX ¶
func MustParse ¶
MustParse returns a `color.RGBA` given a hex color code or Google color string. It panics if the input string cannot be parsed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.