pub enum Theme {
Basic,
Colorful,
Vivid,
Muted,
Light,
Dark,
}Expand description
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
ยงExamples
use std::str::FromStr;
use auto_palette::Theme;
let theme = Theme::from_str("vivid").unwrap();
assert_eq!(theme, Theme::Vivid);Variantsยง
Basic
The theme selects the swatches based on the population of the swatches. The swatches are scored based on the population of the swatches.
Colorful
The theme selects the swatches based on the moderate chroma and lightness. The high chroma and lightness swatches are scored higher.
Vivid
The theme selects the swatches based on the high chroma and moderate lightness. The high chroma and lightness swatches are scored higher.
Muted
The theme selects the swatches based on the low chroma and moderate lightness. The low chroma and lightness swatches are scored higher.
Light
The theme selects the swatches based on the moderate chroma and high lightness. The moderate chroma and high lightness swatches are scored higher.
Dark
The theme selects the swatches based on the low chroma and low lightness. The low chroma and lightness swatches are scored higher.