culors 1.6.0

Rust port of the culori color library. Color spaces, CSS Color Module 4 parsing, interpolation, gamut mapping, ΔE, blending, filters.
Documentation
//! Color-difference (ΔE) factories. Mirrors culori 4.0.2's
//! `difference.js` family. Each public function returns a closure that
//! computes the configured metric on a pair of colors.
//!
//! Every factory takes its parameters once and returns a `Fn(&Color,
//! &Color) -> f64`, matching culori's curried API:
//!
//! ```rust
//! use culors::{difference_ciede2000, parse};
//! let de = difference_ciede2000(1.0, 1.0, 1.0);
//! let red = parse("red").unwrap();
//! let blue = parse("blue").unwrap();
//! let _delta = de(&red, &blue);
//! ```
//!
//! [`difference_jz`] and [`difference_itp`] delegate to
//! [`difference_euclidean_with`] over the Jab and ITP spaces respectively.

mod ciede2000;
mod ciede76;
mod ciede94;
mod cmc;
mod euclidean;
pub(crate) mod extract;
mod hue;
mod hyab;
mod stub;

pub use ciede2000::difference_ciede2000;
pub use ciede76::difference_ciede76;
pub use ciede94::{difference_ciede94, difference_ciede94_with};
pub use cmc::difference_cmc;
pub use euclidean::{
    difference_euclidean, difference_euclidean_with, difference_euclidean_xyz, difference_ok,
};
pub use hue::{difference_hue_chroma, difference_hue_naive, difference_hue_saturation};
pub use hyab::{difference_hyab, difference_kotsarenko_ramos};
pub use stub::{difference_itp, difference_jz};