Documentation ¶
Index ¶
- Variables
- func ColorMonochromePalette(co color.Color, p color.Palette) color.Palette
- func ConvertPalette(p color.Palette, p0 color.Palette) color.Palette
- func DowngradingPalette(in *image.NRGBA, size constants.Size, isCpcPlus bool) (color.Palette, *image.NRGBA, error)
- func DowngradingWithPalette(in *image.NRGBA, p color.Palette) (color.Palette, *image.NRGBA)
- func EnhanceBrightness(p color.Palette, saturation, brightness float64) color.Palette
- func ExtractPalette(in *image.NRGBA, isCpcPlus bool, nbColors int) color.Palette
- func GifToImages(g gif.GIF) []image.Image
- func Kmeans(nbColors int, threshold float64, img image.Image) (*image.NRGBA, error)
- func LumSaturation(c color.Color, lumi, satur float64) color.Color
- func Max(v0, v1 uint32) uint32
- func Min(v0, v1 uint32) uint32
- func MonochromePalette(p color.Palette) color.Palette
- func PaletteUsed(in *image.NRGBA, isCpcPlus bool) color.Palette
- func Reducer(in *image.NRGBA, reducer int) *image.NRGBA
- func Resize(in image.Image, size constants.Size, algo imaging.ResampleFilter) *image.NRGBA
- func SplitImage(i image.Image) (*image.NRGBA, *image.NRGBA, error)
- func ToCPCPalette(p color.Palette, cpcPalette color.Palette) color.Palette
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorCannotDowngradePalette = errors.New("cannot Downgrade colors palette")
Functions ¶
func ColorMonochromePalette ¶
func DowngradingPalette ¶
func DowngradingWithPalette ¶
func EnhanceBrightness ¶
func ExtractPalette ¶
func LumSaturation ¶
nolint: funlen
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.