Crates.io | altered_perception |
lib.rs | altered_perception |
version | 0.5.0 |
source | src |
created_at | 2023-02-12 21:17:13.292998 |
updated_at | 2023-04-07 18:14:35.370222 |
description | `struct HSV/Luma/HSL/etc.` for sharing pixels between crates + other pixel manipulations |
homepage | https://lib.rs/crates/altered_perception |
repository | https://github.com/antonioaja/altered_perception |
max_upload_size | |
id | 783512 |
size | 22,129 |
A rust library for converting and using various color spaces. It currently supports HSV, HSL, CMYK, CMY, and Luma pixels with conversion to and from RGB pixels.
This library is inspired by the rgb crate.
Various changes will be made since this is my first library. All methods/structs will stabilize by the v1.0.0 release, and the crate's structure is still being decided.
This should stabilize by May 2023.
Conversion between and use of various color spaces can be done using the following modules:
cmyk
: Cyan-Magenta-Yellow-Black color spacecmy
: Cyan-Magenta-Yellow color spacehsl
: Hue-Saturation-Lightness color spacehsv
: Hue-Saturation-Value color spaceluma
: Grayscale color spaceCurrently, only conversion between HSV & RGB, Luma & RGB, CMYK & RGB, CMY & RGB, and HSL & RGB is supported.
Support for more color spaces will be added as time goes on. Contributions are welcome.
This create is licensed under an MIT license.