| Crates.io | hsv |
| lib.rs | hsv |
| version | 0.1.1 |
| created_at | 2023-04-15 16:06:51.110019+00 |
| updated_at | 2023-04-15 21:59:06.534989+00 |
| description | A simple crate for converting values in HSV color space to RGB. |
| homepage | https://github.com/jayber/hsv |
| repository | https://github.com/jayber/hsv |
| max_upload_size | |
| id | 840022 |
| size | 9,548 |
A simple function hsv_to_rgb to convert values in the HSV color space to RGB. I created this crate because I couldn't find an existing one that worked for me, and, when I asked chatGPT how to convert HSV to RGB in Rust, it pointed me to a crate called hsv that didn't exist. Now it does.
hsv_to_rgb taking hue: f64, saturation: f64, value: f64 and returning u8, u8, u8Please let me know if it's incorrect. Bug reports and PRs welcome!