farg 0.4.5

A Rust library for colorimetry, color space conversions, and color manipulation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ChromaticAdaptationTransform;

impl ChromaticAdaptationTransform {
  /// The CAT16 chromatic adaptation transform from the CAM16 color appearance model.
  pub const CAT16: Self = Self::new(
    "CAT16",
    [
      [0.401288, 0.650173, -0.051461],
      [-0.250268, 1.204414, 0.045854],
      [-0.002079, 0.048952, 0.953127],
    ],
  );
  /// The default CAT when this is the highest-priority enabled transform.
  #[cfg(not(feature = "cat-bradford"))]
  pub const DEFAULT: Self = Self::CAT16;
}