Crate auto_palette Copy item path Source color assert_approx_eq This module contains macros for assertions.
These macros are used to check if two values are approximately equal. assert_color_eq 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. 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 Filter A trait for filtering pixels in an image. FloatNumber Trait for floating point numbers. ImageResult Represents the result type for image processing operations. Rgba A pixel that contains the RGBA color space values.