image

package
v0.0.0-...-5e2ffb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCannotDowngradePalette = errors.New("cannot Downgrade colors palette")

Functions

func ColorMonochromePalette

func ColorMonochromePalette(co color.Color, p color.Palette) color.Palette

func ConvertPalette

func ConvertPalette(p color.Palette, p0 color.Palette) color.Palette

func DowngradingPalette

func DowngradingPalette(in *image.NRGBA, size constants.Size, isCpcPlus bool) (color.Palette, *image.NRGBA, error)

func DowngradingWithPalette

func DowngradingWithPalette(in *image.NRGBA, p color.Palette) (color.Palette, *image.NRGBA)

func EnhanceBrightness

func EnhanceBrightness(p color.Palette, saturation, brightness float64) color.Palette

func ExtractPalette

func ExtractPalette(in *image.NRGBA, isCpcPlus bool, nbColors int) color.Palette

func GifToImages

func GifToImages(g gif.GIF) []image.Image

func Kmeans

func Kmeans(nbColors int, threshold float64, img image.Image) (*image.NRGBA, error)

func LumSaturation

func LumSaturation(c color.Color, lumi, satur float64) color.Color

nolint: funlen

func Max

func Max(v0, v1 uint32) uint32

func Min

func Min(v0, v1 uint32) uint32

func MonochromePalette

func MonochromePalette(p color.Palette) color.Palette

func PaletteUsed

func PaletteUsed(in *image.NRGBA, isCpcPlus bool) color.Palette

func Reducer

func Reducer(in *image.NRGBA, reducer int) *image.NRGBA

func Resize

func Resize(in image.Image, size constants.Size, algo imaging.ResampleFilter) *image.NRGBA

func SplitImage

func SplitImage(i image.Image) (*image.NRGBA, *image.NRGBA, error)

func ToCPCPalette

func ToCPCPalette(p color.Palette, cpcPalette color.Palette) color.Palette

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL