#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

#672 in Images

Download history 13/week @ 2024-07-22 53/week @ 2024-07-29 22/week @ 2024-08-05 20/week @ 2024-08-12 23/week @ 2024-08-19 40/week @ 2024-08-26 15/week @ 2024-09-02 14/week @ 2024-09-09 14/week @ 2024-09-16 40/week @ 2024-09-23 25/week @ 2024-09-30 19/week @ 2024-10-07 21/week @ 2024-10-14 9/week @ 2024-10-21 14/week @ 2024-10-28 47/week @ 2024-11-04

92 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