package
Version:
v0.0.0-...-95e8317
Opens a new window with list of versions in this module.
Published: Jan 4, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package palette implements useful color.Palette operations.
Apply updates the image to only use colors from the palette. The alpha
channel is always left untouched.
If the palette is empty, the image is not modified.
ApplyN is shorthand for Apply(img, New(img, n)).
New creates a palette of up to n colors from the image. All colors in the
palette are fully opaque.
If n < 1, the palette is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.