modifyColor()
modifyColor(string $color, integer $factor = 17) : string
Calculates a lighter (or darker) version of a color.
Parameters
string | $color | An HTML color, e.g.: #ffffcc. |
integer | $factor | The brightness difference between -0xff and +0xff. Plus values raise the brightness, negative values reduce it. |
Returns
string —A modified HTML color.