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
//! 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/0.1.0")] // we don't mess around with documentation #![deny(missing_docs)] extern crate csv; extern crate geo; extern crate nalgebra as na; extern crate num; extern crate serde; #[macro_use] extern crate serde_derive; extern crate termion; pub mod coord; mod consts; mod matplotlib_cmaps; pub mod illuminants; pub mod color; pub mod bound; mod visual_gamut; pub mod colors; pub mod colorpoint; pub mod colormap; pub mod material_colors; pub mod prelude; #[cfg(test)] mod tests { #[test] fn it_works() { assert_eq!(2 + 2, 4); } }