Skip to content

A PHP toolkit for converting between Hex, RGB, and HSL colors. Also can calculate hue shifts, monochromatic schemes, etc.

Notifications You must be signed in to change notification settings

sathoro/color-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

color-tool

A PHP toolkit for converting between Hex, RGB, and HSL colors. Also can calculate hue shifts, monochromatic schemes, etc.

First initialize a ColorTool object:

$color = new ColorTool();

Then use one of the following three functions to give it a value:

$color->set_hex("#000000");
$color->set_rgb(array($r, $g, $b));
$color->set_hsl(array($h, $s, $l));

View index.php to see some examples.

About

A PHP toolkit for converting between Hex, RGB, and HSL colors. Also can calculate hue shifts, monochromatic schemes, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages