Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 

README.md

php-color-difference

PHP Color Difference using Delta E CIE 2000

Example Usage (also in example.php):


<?php
include('lib/color_difference.class.php');

$rgb1 = [ 255, 0, 0 ];
$rgb2 = [ 100, 0, 0 ];

$color_difference = (new color_difference())->deltaECIE2000($rgb1, $rgb2);

print $color_difference . chr(10);
?>

Installation

Depends on PHP 5.4


$ git clone https://github.com/renasboy/php-color-difference
$ cd php-color-difference
$ php example.php

Formula from www.brucelindbloom.com
Inspired by ruby colorscore and python colormath

About

PHP Color Difference using Delta E CIE 2000

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.