Skip to content
it finds the nearest base color of given color from the given base color list. (PHP)
Branch: master
Clone or download
Latest commit c8e5915 Jun 23, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests provider architecture changed Jul 25, 2013
.gitignore First Jul 24, 2013
PKRoundColor.php README Jul 24, 2013
README.md updated project name :) Jul 24, 2013
composer.json Composer init Jun 23, 2014
test.php First Jul 24, 2013

README.md

Round Color 

It finds the nearest base color of given color from the given base color list.

Test image :

RoundColor Test img

Base Colors :

    "964b00"   //Brown
    "000000"   //Black
    "403d3f"   //smoked (Turkish : Füme )
    "808080"   //Gray
    "f5f5dc"   //Beige (Turkish : Bej )
    "ffffff"   //White
    "ffcbdb"   //Pink
    "ff00ff"   //Fuchsia (Turkish : Fuşya )
    "9370db"   //Purple
    "b03060"   //Claret Red (Turkish : Bize her yer trabzon! )
    "0000ff"   //Blue
    "40e0d0"   //Turquoise
    "00ff00"   //Green
    "ffff00"   //Yellow
    "ff7f00"   //Orange
    "ff0000"   //Red

usage :

$color = "#f3f3dd";

$PKR = new PKRoundColor();
$roundedColor = $PKR->getRoundedColor($color);
echo $roundedColor;

Return Value :

#f5f5dc
You can’t perform that action at this time.