Documentation ¶
Index ¶
- Variables
- func GetColor(img image.Image) (color.Color, error)
- func GetColorFromFile(imgPath string) (color.Color, error)
- func GetPalette(img image.Image, maxCubes int) ([]color.Color, []int, error)
- func GetPaletteFromFile(imgPath string, maxCubes int) ([]color.Color, []int, error)
- func PrintColor(colors []color.Color, filename string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMaxCubes = 6
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.