lib

package
v0.0.0-...-320f2e3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 4

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