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 46 47 48 49 50
//! Scarlet is a library for making color, color spaces, and everything that comes with it simple to
//! work with. The underlying philosophy is that if all you have is a hammer, everything looks like a
//! nail: existing color libraries often only work with RGB or other convenient color spaces, and so
//! go to great lengths to invent complicated workarounds for the essential problems with RGB and its
//! ilk, namely not being very good analogues to the way humans actually see color. Scarlet makes
//! working with color convenient enough that it's *easier* to treat colors correctly than it is to do
//! anything else.
#![doc(html_root_url = "https://docs.rs/scarlet/1.0.2")]
// we don't mess around with documentation
#![deny(missing_docs)]
// Clippy doesn't like long decimals, but adding separators in decimals isn't any more readable
// compare -0.96924 with -0.96_924
#![allow(clippy::unreadable_literal)]
extern crate csv;
extern crate geo;
#[macro_use]
extern crate nalgebra;
extern crate num;
extern crate serde;
#[macro_use]
extern crate serde_derive;
// extern crate termion;
#[macro_use]
extern crate lazy_static;
pub mod bound;
pub mod color;
pub mod colormap;
pub mod colorpoint;
pub mod colors;
mod consts;
pub mod coord;
mod csscolor;
mod cssnumeric;
pub mod illuminants;
pub mod material_colors;
mod matplotlib_cmaps;
pub mod prelude;
mod visual_gamut;
// pub mod doc;
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}