colors - How do I make a lighter version of a colour using PHP? -
hello fellow earthlings. quesion rgb color , usefulness in simple tiny php code:
imagine have variable $colora
containning valid 6 char color. b1b100
, greenish natural color. if make new color that, is, say, ten steps lighter thatn original color, roughly.
$colora = b1b100 // original color php code little color engine lightening stuff goes here $colorb = ?????? // original color lightened
is there php ready function knows rgb colors like
php function rgb ( input color, do, output color) +/- 255 values of brightness etc etc.
is possible or day dreaming?
rgb-hsl($colora, +10, $colorb);
if not exist, shortest code doing this? suggestions, code or ideas answers me. thanks.
this question has full-blown php script can convert rgb hsl colour, , increase h component of hsl colour - should trivial change increase l instead.
Comments
Post a Comment