Below is the concept for a brightness / saturation change program with brightness() and saturation() .
function brightness($colorstr, $steps) { ... return sprintf("%02x%02x%02x", $r, $g, $b); } function saturation(){ ... return sprintf("%02x%02x%02x", $r, $g, $b); }
Are there any existing easy-to-use mods on the Internet to complement this ane, do the following:
$color2 = saturation($color,-10); $color3 = saturation($color,+10);
source share