Skip to content

it finds the nearest base color of given color from the given base color list. (PHP)

Notifications You must be signed in to change notification settings

Projekod/RoundColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

it finds the nearest base color of given color from the given base color list. (PHP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages