Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorSet ¶
type ColorSet struct {
// contains filtered or unexported fields
}
ColorSet is a collection of colors holding metadata like: prominentcolor parameters used to create the set in int and str format, total distance between each colors (diversity) and the colors theirself in colorful format allowing all type of conversions.
func NewColorSet ¶
func NewColorSet(set []prominentcolor.ColorItem, params int) ColorSet
NewColorSet create a metadata rich colorset from a prominentcolor set
func (ColorSet) GetColorfullSet ¶
GetColorfullSet returns the set in the colorful format
func (ColorSet) GetPColorParams ¶
GetPColorParams returns the prominentcolor params used to generate the set
func (ColorSet) GetPColorParamsString ¶
GetPColorParamsString returns the string format of prominentcolor params used to generate the set
func (ColorSet) GetPColorSet ¶
func (cs ColorSet) GetPColorSet() (pcolorSet []prominentcolor.ColorItem)
GetPColorSet rebuild a prominentcolor compatible set (minus the cnt metadata which has been lost)
func (ColorSet) TotalDistance ¶
TotalDistance returns the total distance between every colors within the set