color_space
color_space copied to clipboard
A Rust library for converting between color spaces and comparing colors.
This allows colors to be constructed in const context
Aren't RGB values supposed to be positive in the [0, 255] range only? Consider this: ```rust let lab = color_space::Lab::new(46.0, 0.0, -60.0); let rgb = lab.to_rgb(); println!("RGB: {} {} {}",...
The readme lists HSB, but it does not appear in the code. Is this meant to be separate or is it equivalent to HSV, which is in the code??
[Oklab](https://bottosson.github.io/posts/oklab/) is a new color space for intuitive perceptual color image processing. Although new, it seems like it is becoming more popular by the minute and [is already supported in...
Hi, I’ve recently been looking for a Rust library to convert between RGB and a perceptually-uniform colour space. There are many crates that support Lab or Lch (such as this...
This PR * Reformats everything with `cargo fmt`. This is generally recommended in open-source projects, as it enforces a consistent style. Also, rust-analyzer runs `cargo fmt` by default every time...
I've been working on this crate in the last few days, before it gets too different from the status quo. Let's discuss what are the changes I'm proposing. I'm working...