Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePalette ¶
func CreatePalette(colorslice ColorSlice) image.Image
CreatePalette ... creates a palette image.
Types ¶
type ColorSlice ¶
type ColorSlice []Newcolor
ColorSlice ... a slice or RGB colors.
func ExtractByKmeans ¶
func ExtractByKmeans(filename string, k int, alpha float64) (ColorSlice, error)
ExtractByKmeans ... returns a slice of colors in RGB. The basic approach: blur, resize, kmeans cluster.
func Parser ¶
func Parser(result string) ColorSlice
Parser ... parses the json result from Colormind API.
func Refine ¶
func Refine(clustered ColorSlice) (ColorSlice, error)
Refine ... takes advantage of the Colormind API.
Click to show internal directories.
Click to hide internal directories.