Crate prominence

Source
Expand description

A library to extract prominent colors from an image.

This library is a reimplementation of the Palette library in Android Jetpack. Android Jetpack is Copyright 2018 The Android Open Source Project. Android Jetpack is licensed under the Apache License, Version 2.0.

Original source.

Android Jetpack license.

Re-exports§

pub use image;

Structs§

DefaultFilter
The default filter included in every crate::PaletteBuilder by default.
Palette
A color palette derived from an image.
PaletteBuilder
A builder for a new Palette.
Swatch
Target

Constants§

DEFAULT_CALCULATE_NUMBER_COLORS
The default amount of colors to calculate at maximum while quantizing an image.
DEFAULT_RESIZE_IMAGE_AREA
The default area to resize the given image to before quantizing;

Traits§

Filter
A trait used to implement filters for the image quantization process.