https://github.com/katyo/colours-rs
Color types for different color models with conversions between it
https://github.com/katyo/colours-rs
Last synced: 3 months ago
JSON representation
Color types for different color models with conversions between it
- Host: GitHub
- URL: https://github.com/katyo/colours-rs
- Owner: katyo
- Created: 2020-01-10T17:25:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T11:04:19.000Z (over 5 years ago)
- Last Synced: 2025-03-12T04:23:18.208Z (4 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Color types with conversions
[](https://opensource.org/licenses/MIT)
[](https://travis-ci.com/katyo/colours-rs)
[](https://crates.io/crates/colours)
[](https://docs.rs/colours)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_.