Skip to content

renasboy/php-color-difference

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages