package palettes import ( "image/color" "sync" ) var ( Transparent = color.RGBA{R: 0, G: 0, B: 0, A: 0} Palettes = map[string]color.Palette{} initPalettes = sync.Once{} ) func Get(name string) (color.Palette, bool) { p, ok := Palettes[name] return p, ok }