Crates.io | colours |
lib.rs | colours |
version | 0.1.1 |
source | src |
created_at | 2020-01-10 17:50:54.801638 |
updated_at | 2020-02-21 11:00:26.542588 |
description | Color types for different color models with conversions between it. |
homepage | |
repository | https://github.com/katyo/colours-rs |
max_upload_size | |
id | 197227 |
size | 21,779 |
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.