https://github.com/elliotekj/deltae
DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm
https://github.com/elliotekj/deltae
cie ciede2000 color quantification rust
Last synced: 7 months ago
JSON representation
DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm
- Host: GitHub
- URL: https://github.com/elliotekj/deltae
- Owner: elliotekj
- License: mit
- Created: 2017-05-26T12:03:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T03:21:08.000Z (over 4 years ago)
- Last Synced: 2025-06-22T08:16:50.113Z (8 months ago)
- Topics: cie, ciede2000, color, quantification, rust
- Language: Rust
- Homepage: https://crates.io/crates/delta_e
- Size: 12.7 KB
- Stars: 25
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DeltaE - Quantify color differences in Rust
[](https://crates.io/crates/delta_e)
[](https://docs.rs/delta_e)
[](https://github.com/elliotekj/DeltaE/blob/master/LICENSE)
DeltaE is a pure-Rust implementation of the [CIEDE2000
algorithm](http://en.wikipedia.org/wiki/Color_difference#CIEDE2000) which serves
to quantify the difference between two colors. It is entirely based on the work
of [Zachary Schuessler](http://zaclee.net/), who has written a [Javascript
implementation](https://github.com/zschuessler/DeltaE/blob/master/src/dE00.js)
of the algorithm.
## Installation
If you're using Cargo, just add DeltaE to your `Cargo.toml`:
```toml
[dependencies]
delta_e = "0.2"
```
## Example
```rust
extern crate delta_e;
extern crate lab;
use delta_e::DE2000;
use lab::Lab;
fn main() {
let color_1 = Lab {
l: 38.972,
a: 58.991,
b: 37.138,
};
let color_2 = Lab {
l: 54.528,
a: 42.416,
b: 54.497,
};
let delta_e = DE2000::new(color_1, color_2);
println!("The color difference is: {}", delta_e);
}
```
## License
DeltaE is released under the MIT [`LICENSE`](/elliotekj/DeltaE/blob/master/LICENSE).
## About
This crate was written by [Elliot Jackson](https://elliotekj.com).
- Blog: [https://elliotekj.com](https://elliotekj.com)
- Email: elliot@elliotekj.com