#color #rgb #alpha #hsv #hsl #graphics


Color types for different color models with conversions between it

2 releases

0.1.1 Feb 21, 2020
0.1.0 Jan 10, 2020

#1172 in Data structures

21 downloads per month

MIT license

604 lines

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.


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.

No runtime deps