1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! # Legacy Colourspaces (DEPRECATED)
//!
//! **DEPRECATED**: Colourspaces in this module are defined by xy chromaticity coordinates
//! using the CIE 1931 Standard Observer. These specifications are permanently bound to 1931
//! observer data and cannot be updated without changing the colourspace itself.
//!
//! **Use spectral colourspaces instead**: VSF RGB and Rec.2020 define primaries by wavelengths,
//! making them observer-independent and physically reproducible.
//!
//! ## sRGB
//!
//! The standard RGB colourspace for web content, consumer displays, and digital cameras.
//! - **Primaries**: Defined in 1931 xy coordinates (same as Rec.709)
//! - **White Point**: D65 (simulated north sky daylight)
//! - **Gamma**: Piecewise function (linear segment + 2.4 power)
//!
//! ## XYZ
//!
//! CIE XYZ tristimulus values represent colours in terms of the 1931 Standard Observer response.
//! This is the foundation space for most xy-coordinate-based colour standards.
//!
//! ## Conversions
//!
//! Conversions between legacy colourspaces use published transformation matrices and go thru
//! XYZ tristimulus space when necessary. Conversions to/from spectrally-defined spaces go thru
//! LMS cone space using the CIE 2006 2° Standard Observer to maintain perceptual equivalence.
// Re-export all legacy functions for backward compatibility
pub use *;
pub use *;
pub use *;