Documentation ¶
Index ¶
- func GetColor(img image.Image, numColors, functionType int) (color.Color, error)
- func GetColorFromUri(uri string) (color.Color, error)
- func GetPalette(img image.Image, numColors, functionType int) ([]color.Color, error)
- func GetPaletteFromUri(uri string, numColors, functionType int) ([]color.Color, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColorFromUri ¶ added in v0.0.3
GetColorFromUri return the base color from the image file or uri
func GetPalette ¶
GetPalette return cluster similar colors by the median cut algorithm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.