farbraum
Rust crate to convert between color spaces. "Farbraum" /ˈfarbraʊ̯m/ is German for "color space".
Most conversion functions are ported from the culori javascript library. Some parts were modified to make the results more accurate.
Usage
Look at the documentation.
Color spaces
Farbraum supports 24 color spaces, including sRGB, HSL, HSV, Oklab, CIELAB, CIELUV, CIE XYZ and more. See the full list.
Cargo features
double-precision: Components are floating-point values, by defaultf64. If you disable thedouble-precisionfeature,f32is used instead.serde: Enable this feature to serialize and deserializeColorvalues.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.