Increase or decrease Hue, Saturation, and Lightness of an rgb color from its current values.

color:adjust_rgb_by_percentage(INT $red, INT $green, INT $blue, FLOAT $hue_adjustment_percentage=0, FLOAT $saturation_adjustment_percentage=0, FLOAT $lightness_adjustment_percentage=0)

color:adjust_rgb_by_percentage(0, 0, 0, 1, 0.5, 0.5)
#=> [
#=>     "hue" => 0.0,
#=>     "saturation" => 0.0,
#=>     "lightness" => 0.04
#=> ]

color:adjust_rgb_by_percentage(100, 200, -.1)        
#=> [
#=>     "red" => 99.0,
#=>     "green" => 198.0,
#=>     "blue" => 0.0
#=> ]

color:adjust_rgb_by_percentage(255, 230, 109, 0, .30, -.3)
#=> [
#=>     "red" => 291.0,
#=>     "green" => 236.0,
#=>     "blue" => 0.0
#=> ]

Copyright ©2013-2022 SunSed®. All rights reserved.