lib

package
v0.0.0-...-a4a6df4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToPaletted

func ConvertToPaletted(src image.Image) *image.Paletted

ConvertToPaletted converts the given image into a paletted one. Colors are converted using a naive approache. The first 256 unique colors are retained, and the rest are mapped to hopefully a nearby color.

func UniqueColors

func UniqueColors(src image.Image) []color.Color

UniqueColors returns the first 256 unique color.Color used in this image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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