Crate auto_palette

Source

Modules§

color

Macros§

assert_approx_eq
This module contains macros for assertions. These macros are used to check if two values are approximately equal.
assert_color_eq

Structs§

ImageData
The image data representing the pixel data of an image.
Palette
The color palette representation extracted from the image data.
Swatch
The swatch representation containing the color, position, and population.

Enums§

Algorithm
The clustering algorithm to use for color palette extraction.
Error
Represents specific errors encountered during the palette extraction process.
ImageError
Represents specific errors encountered during image processing.
Theme
The theme representation for scoring the swatches. The definition of the themes is based on the PCCS (Practical Color Co-ordinate System) color theory. @see Practical Color Coordinate System - Wikipedia

Traits§

Filter
A trait for filtering pixels in an image.
FloatNumber
Trait for floating point numbers.

Type Aliases§

ImageResult
Represents the result type for image processing operations.
Rgba
A pixel that contains the RGBA color space values.