farg 0.4.5

A Rust library for colorimetry, color space conversions, and color manipulation.
Documentation
use crate::{
  illuminant::{Illuminant, IlluminantType},
  spectral::Spd,
};

static SPD_DATA: [(u32, f64); 81] = [
  (380, 0.34),
  (385, 7.11),
  (390, 11.49),
  (395, 14.97),
  (400, 14.95),
  (405, 29.14),
  (410, 38.08),
  (415, 51.56),
  (420, 62.56),
  (425, 55.61),
  (430, 41.98),
  (435, 50.02),
  (440, 42.14),
  (445, 39.04),
  (450, 40.52),
  (455, 45.29),
  (460, 51.01),
  (465, 49.18),
  (470, 49.05),
  (475, 46.12),
  (480, 45.73),
  (485, 39.46),
  (490, 44.39),
  (495, 46.14),
  (500, 49.54),
  (505, 59.76),
  (510, 48.47),
  (515, 48.38),
  (520, 48.7),
  (525, 44.25),
  (530, 54.42),
  (535, 128.93),
  (540, 81.26),
  (545, 67.36),
  (550, 48.48),
  (555, 51.41),
  (560, 48.88),
  (565, 68.52),
  (570, 80.85),
  (575, 65.96),
  (580, 59.43),
  (585, 67.57),
  (590, 128.34),
  (595, 131.85),
  (600, 101.7),
  (605, 77.05),
  (610, 66.27),
  (615, 77.09),
  (620, 60.51),
  (625, 65.23),
  (630, 57.86),
  (635, 56.2),
  (640, 54.32),
  (645, 56.34),
  (650, 45.74),
  (655, 50.79),
  (660, 56.66),
  (665, 51.99),
  (670, 84.31),
  (675, 47.48),
  (680, 47.46),
  (685, 61.78),
  (690, 34.51),
  (695, 38.74),
  (700, 30.98),
  (705, 25.45),
  (710, 22.88),
  (715, 20.82),
  (720, 21.05),
  (725, 20.81),
  (730, 18.69),
  (735, 17.54),
  (740, 19.58),
  (745, 16.42),
  (750, 23.77),
  (755, 35.39),
  (760, 21.37),
  (765, 34.58),
  (770, 30.21),
  (775, 19.71),
  (780, 15.61),
];

impl Illuminant {
  pub const HP5: Self = Self::new("HP5", IlluminantType::GasDischarge, Spd::new(&SPD_DATA));
}