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"),
    not(feature = "cat-von-kries"),
    not(feature = "cat-hunt-pointer-estevez"),
    not(feature = "cat-sharp"),
    not(feature = "cat-fairchild"),
    not(feature = "cat-cmc-cat97"),
  ))]
  pub const DEFAULT: Self = Self::XYZ_SCALING;
  /// XYZ scaling (identity matrix) chromatic adaptation.
  ///
  /// The simplest possible adaptation — scales each XYZ channel independently.
  /// Always available regardless of feature flags.
  pub const XYZ_SCALING: Self = Self::new("XYZ Scaling", [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]);
}