1 unstable release
0.1.0 | Nov 10, 2021 |
---|
#33 in #color-conversion
62KB
1.5K
SLoC
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-precision
feature,f32
is used instead.serde
: Enable this feature to serialize and deserializeColor
values.
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.
Dependencies
~170KB