Crates.io | cowor |
lib.rs | cowor |
version | 0.1.0 |
source | src |
created_at | 2022-12-08 21:05:24.30641 |
updated_at | 2022-12-08 21:05:24.30641 |
description | A color conversion and manipulation library |
homepage | |
repository | https://github.com/zatmos/cowor/ |
max_upload_size | |
id | 732813 |
size | 63,812 |
A color conversion and manipulation library with color spaces' specifications enforced through the type system. All colors are always valid and there are no "unclamped" values.
Currently supporting the following color spaces:
and the conversions between each of those.
Currently, only the conversions are implemented.
To perform a conversion between two color spaces, simply use from
/into
for conversions in which the starting color space's colors can always be represented in the destination color space.
Otherwise, use try_from
/try_into
. The error when the starting color falls outside the gamut of the destination color space
is a OutOfGamut
error.
Licensed under the GNU General Public License, Version 3.0