Skip to content
pubscout

delta_e

0.2.1, released 2 years ago by an unverified publisher

Compute CIE color difference (ΔE) using 1976, 1994, and 2000 formulas in pure Dart.

WASM-ready
$ flutter pub add delta_e
Source repository

What it does

The package provides functions to calculate the perceptual difference between two colors in CIELAB space. It supports the three main DeltaE algorithms (cie76, cie94, ciede2000) and offers a unified API.

AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to compare two colors for perceptual similarity in a design or image processing workflow.
  • You want to validate color differences against industry standards in a Flutter or Dart project.
  • You need a lightweight, dependency-free solution for color difference calculations.
  • You are building a tool that requires accurate color matching or tolerance checks.

Skip it when

  • You require a full color management or conversion library beyond ΔE calculations.
  • You need to work with color spaces other than CIELAB without additional conversion utilities.

Strengths

  • Pure Dart implementation, no native dependencies.
  • Supports all three major DeltaE algorithms with optional weighting.
  • No external build steps or code generation required.
  • Compatible with all platforms (android, ios, web, windows, macos, linux).

Weaknesses

  • Limited to color difference calculations only; no color conversion utilities.
  • No support for other color spaces or advanced color management features.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
```dart
import 'package:delta_e/delta_e.dart';

void main() {
  LabColor lab1 = LabColor(36, 60, 41);
  LabColor lab2 = LabColor(100, 40, 90);
  print(deltaE76(lab1, lab2)); // 83.04817878797824
  print(deltaE94(lab1, lab2)); // 67.97917774753019
  print(deltaE00(lab1, lab2)); // 56.85828292477247
}
```

Alternatives

Packages that do the same job and could replace delta_e.