Skip to main content

Crate salience

Crate salience 

Source
Expand description

CAM16-UCS based color-salience model: how strongly a foreground color stands out against a background. The main entry point is Model; also re-exported are Weights, the Components/ComponentsWeighted breakdowns, and the CAM16 conversion helpers.

Re-exports§

pub use core::salience::Components;
pub use core::salience::ComponentsWeighted;
pub use core::salience::Model;
pub use core::salience::ModelBuilder;
pub use core::weights::Weights;
pub use utils::CamParams;
pub use utils::SpecJab;
pub use utils::SpecJmh;
pub use utils::cam_to_rgb;
pub use utils::default_params;
pub use utils::hue_difference;
pub use utils::jab_to_jmh;
pub use utils::rgb_to_jab;

Modules§

core
Core model: salience holds the crate::core::salience::Model and its components, and weights holds the per-background weight sets.
utils
CAM16 conversion helpers, color utilities, and the traits numeric trait bounds.