public RgbaColor adjustHue ( float degrees ) { float [ ] HSL = convertToHsl ( ) ; HSL [ 0 ] = hueCheck ( HSL [ 0 ] + degrees ) ; // ensure [0-360) return RgbaColor . fromHsl ( HSL ) ; }
Returns a new color that has the hue adjusted by the specified amount .