bigwhoop / deltae
Delta E color closeness algorithm
Installs: 2 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4
This package is auto-updated.
Last update: 2024-12-07 21:56:56 UTC
README
Composer-ready port of https://github.com/renasboy/php-color-difference with some more sugar.
Installation
composer require "bigwhoop/deltae":"~1"
Usage
use Bigwhoop\DeltaE\Color;
use Bigwhoop\DeltaE\DeltaE;
$deltaE = new DeltaE();
$c1 = Color::fromHex('#333333');
$c2 = Color::fromHex('#666666');
$closeness = $deltaE->cie2000($c1, $c2);
var_dump($closeness);
License
See LICENSE file.