Documentation
¶
Index ¶
- func AddColorVariantsToPalette(palette *[]models.Pixel)
- func CalculateEuclideanDistance(x models.Pixel, y models.Pixel) float64
- func CalculateMeanPixel(pixels []models.Pixel) models.Pixel
- func CalculatePixelSum(pixel models.Pixel) uint32
- func ConvertRgbToAnsiBackground(pixel models.Pixel) string
- func ConvertRgbToHex(pixel models.Pixel) string
- func FindMinimumDistanceIndex(distances []float64) int
- func GenerateDarkerPixelVariant(pixel models.Pixel) models.Pixel
- func GenerateLighterPixelVariant(pixel models.Pixel) models.Pixel
- func GetPixels(image image.Image) []models.Pixel
- func InitializeRandomCentroids(pixels []models.Pixel, numberOfClusters int) []models.Pixel
- func SortPixelsByBrightness(pixels []models.Pixel)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddColorVariantsToPalette ¶
AddColorVariantsToPalette adds lighter or darker variants of the colors to the palette based on brightness.
func CalculatePixelSum ¶
func ConvertRgbToHex ¶
func SortPixelsByBrightness ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.