func (p *Palette) VibrantColor(defaultColor uint32) uint32 {
	return p.ColorForTarget(Vibrant, defaultColor)
}
Returns the most vibrant color in the palette as an RGB packed int.
package vibrant
import (
	"golang.org/x/image/draw"
	"image"
	"log"
)
const (
	DefaultResizeArea        = uint64(320 * 320)
	DefaultMaximumColorCount = uint32(64)
)
var (
	DefaultScaler = draw.ApproxBiLinear
)
type Palette struct {
	swatches         []*Swatch
	targets          []*Target
	selectedSwatches map[*Target]*Swatch
	usedColors       map[uint32]bool
	maxPopulation    uint32
}
func newPalette(swatches []*Swatch, targets []*Target) *Palette {
	maxPopulation := uint32(0)
	for _, swatch := range swatches {
		if swatch.Population() > maxPopulation {
			maxPopulation = swatch.Population()
		}
	}
	return &Palette{
		swatches:         swatches,
		targets:          targets,
		selectedSwatches: make(map[*Target]*Swatch),
		usedColors:       make(map[uint32]bool),
		maxPopulation:    maxPopulation,
	}
}
func (p *Palette) Swatches() []*Swatch {
	return p.swatches
}
func (p *Palette) Targets() []*Target {
	return p.targets
}
func (p *Palette) VibrantSwatch() *Swatch {
	return p.SwatchForTarget(Vibrant)
}
func (p *Palette) LightVibrantSwatch() *Swatch {
	return p.SwatchForTarget(LightVibrant)
}
func (p *Palette) DarkVibrantSwatch() *Swatch {
	return p.SwatchForTarget(DarkVibrant)
}
func (p *Palette) MutedSwatch() *Swatch {
	return p.SwatchForTarget(Muted)
}
func (p *Palette) LightMutedSwatch() *Swatch {
	return p.SwatchForTarget(LightMuted)
}
func (p *Palette) DarkMutedSwatch() *Swatch {
	return p.SwatchForTarget(DarkMuted)
}