1 unstable release

0.1.0 Nov 10, 2021

#32 in #color-conversion

MIT/Apache

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 default f64. If you disable the double-precision feature, f32 is used instead.
  • serde: Enable this feature to serialize and deserialize Color values.

License

This project is licensed under either of

at your option.

Dependencies

~180KB