Package colors provides helper functions to manage color and color schemes.
func LoadBarConfig ¶
LoadBarConfig automatically loads colors from the current bar's configuration. It assumes that the parent process is the i3bar instance, and the bar_id command-line flag identifies the bar id.
func LoadFromArgs ¶
func LoadFromArgs(args string)
LoadFromArgs loads a color scheme from command-line arguments of the form name=value.
func LoadFromConfig ¶
LoadFromConfig loads a color scheme from a i3status config file by reading all keys that start with 'color_'
func LoadFromMap ¶
LoadFromMap sets the colour scheme from code.
type ColorfulColor ¶
ColorfulColor extends image/color.Color with the ability to get a go-colorful.Color. This is simpler than using go-colorful.MakeColor because the backing implementation already has a colorful value.
func Hex(hex string) ColorfulColor
Hex sanity-checks and constructs a color from a hex-string. Any string that can be parsed by colorful is acceptable.