farg 0.4.5

A Rust library for colorimetry, color space conversions, and color manipulation.
Documentation
use super::ChromaticAdaptationTransform;

impl ChromaticAdaptationTransform {
  /// The default CAT when this is the highest-priority enabled transform.
  #[cfg(all(
    not(feature = "cat-bradford"),
    not(feature = "cat-cat16"),
    not(feature = "cat-cat02"),
    not(feature = "cat-cmc-cat2000"),
  ))]
  pub const DEFAULT: Self = Self::VON_KRIES;
  /// The Von Kries chromatic adaptation transform.
  ///
  /// A simple diagonal adaptation using Hunt-Pointer-Estevez-like cone responses.
  pub const VON_KRIES: Self = Self::new(
    "Von Kries",
    [
      [0.4002400, 0.7076000, -0.0808100],
      [-0.2263000, 1.1653200, 0.0457000],
      [0.0000000, 0.0000000, 0.9182200],
    ],
  );
}