Documentation ¶
Index ¶
- func GetColor(img image.Image, numColors, functionType int) (color.Color, error)
- func GetColorFromFile(imgPath string) (color.Color, error)
- func GetPalette(img image.Image, numColors, functionType int) ([]color.Color, error)
- func GetPaletteFromFile(imgPath string, numColors, functionType int) ([]color.Color, error)
- func PrintColor(colors []color.Color, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColorFromFile ¶
GetColorFromFile return the base color from the image file
func GetPalette ¶
GetPalette return cluster similar colors by the median cut algorithm
func GetPaletteFromFile ¶
GetPaletteFromFile return cluster similar colors from the image file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.