bigwhoop/deltae

Delta E 颜色接近度算法

1.0.1 2015-03-03 16:57 UTC

This package is auto-updated.

Last update: 2024-09-07 21:23:16 UTC


README

Build Status Code Coverage Scrutinizer Code Quality

https://github.com/renasboy/php-color-difference 以更易于使用的方式集成到 Composer 中。

安装

composer require "bigwhoop/deltae":"~1"

使用方法

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 文件。