delta_e 0.1.0 copy "delta_e: ^0.1.0" to clipboard
delta_e: ^0.1.0 copied to clipboard

outdated

CIE color difference algorithms in Dart. This contains the dE76, dE94 and dE00 color difference algorithms produced by the International Commission on Illumination.

example/main.dart

import 'package:delta_e/delta_e.dart';

void main() {
    // Creating two test LAB color objects to compare
    LabColor lab1 = LabColor(36, 60, 41);
    LabColor lab2 = LabColor(100, 40, 90);
    // 1976 formula
    print(deltaE76(lab1, lab2)); // 83.04817878797824
    print(deltaE(lab1, lab2, algorithm: DeltaEAlgorithm.cie76)); // 83.04817878797824
    // 1994 formula
    print(deltaE94(lab1, lab2)); // 67.97917774753019
    print(deltaE(lab1, lab2, algorithm: DeltaEAlgorithm.cie94)); // 67.97917774753019
    // 2000 formula
    print(deltaE00(lab1, lab2)); // 56.85828292477247
    print(deltaE(lab1, lab2, algorithm: DeltaEAlgorithm.ciede2000)); // 56.85828292477247
}
12
likes
0
points
6.36k
downloads

Publisher

unverified uploader

Weekly Downloads

CIE color difference algorithms in Dart. This contains the dE76, dE94 and dE00 color difference algorithms produced by the International Commission on Illumination.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on delta_e