de
delta_e
cargo install delta_e
de

delta_e

DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm

by Elliot Jackson

0.2.1 (see all)License:MIT
cargo install delta_e
Readme

DeltaE - Quantify color differences in Rust

Crates.io Docs License

DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm which serves to quantify the difference between two colors. It is entirely based on the work of Zachary Schuessler, who has written a Javascript implementation of the algorithm.

Installation

If you're using Cargo, just add DeltaE to your Cargo.toml:

[dependencies]
delta_e = "0.2"

Example

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.

About

This crate was written by Elliot Jackson.

GitHub Stars

20

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

3
VersionTagPublished
0.2.1
3yrs ago
0.2.0
5yrs ago
0.1.0
5yrs ago
No alternatives found
No tutorials found
Add a tutorial