2 releases
| 0.1.1 | Feb 21, 2020 |
|---|---|
| 0.1.0 | Jan 10, 2020 |
#2041 in Data structures
22KB
604 lines
Generic color manipulation library
This crate implements widely used color types of different color models with conversions between it.
Each type can be parametrized by scalar type which will be used as channel or color component.
Color types with conversions
This library implements color types for some widely used color models such as RGB, HSL, HSV and variants with alpha channel. The support for other models may be added in future.
Each type parameterized using channel type: u8 or f32.
The channel value range for u8 is from 0 to 255,
and for f32 is from 0.0 to 1.0.