#color #delta #difference #cie #quantify

delta_e

DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm

3 unstable releases

Uses old Rust 2015

0.2.1 Jun 23, 2019
0.2.0 Jun 29, 2017
0.1.0 May 26, 2017

#610 in Images

Download history 31/week @ 2024-03-11 24/week @ 2024-03-18 27/week @ 2024-03-25 97/week @ 2024-04-01 16/week @ 2024-04-08 18/week @ 2024-04-15 23/week @ 2024-04-22 15/week @ 2024-04-29 23/week @ 2024-05-06 22/week @ 2024-05-13 16/week @ 2024-05-20 46/week @ 2024-05-27 17/week @ 2024-06-03 25/week @ 2024-06-10 21/week @ 2024-06-17 21/week @ 2024-06-24

88 downloads per month
Used in 2 crates (via libgled)

MIT license

14KB
154 lines

DeltaE - Quantify color differences in Rust

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.

Dependencies

~62KB