Below is a concept for a brightness/saturation alterarion programm 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 simple to use fashions online to complement this ane make the following possible:
$color2 = saturation($color,-10); /* less staurated*/
$color3 = saturation($color,+10); /* more staurated*/