altered_perception

Crates.ioaltered_perception
lib.rsaltered_perception
version0.5.0
sourcesrc
created_at2023-02-12 21:17:13.292998
updated_at2023-04-07 18:14:35.370222
description`struct HSV/Luma/HSL/etc.` for sharing pixels between crates + other pixel manipulations
homepagehttps://lib.rs/crates/altered_perception
repositoryhttps://github.com/antonioaja/altered_perception
max_upload_size
id783512
size22,129
Antonio (antonioaja)

documentation

https://docs.rs/altered_perception/

README

altered_perception

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.

Changes

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.

Usage

Conversion between and use of various color spaces can be done using the following modules:

  • cmyk: Cyan-Magenta-Yellow-Black color space
  • cmy: Cyan-Magenta-Yellow color space
  • hsl: Hue-Saturation-Lightness color space
  • hsv: Hue-Saturation-Value color space
  • luma: Grayscale color space

Currently, only conversion between HSV & RGB, Luma & RGB, CMYK & RGB, CMY & RGB, and HSL & RGB is supported.

Additional Color Spaces

Support for more color spaces will be added as time goes on. Contributions are welcome.

MIT License

This create is licensed under an MIT license.

Commit count: 30

cargo fmt