public static Expression adjusthue ( Generator generator , FunctionCall input ) { Color color = input . getExpectedColorParam ( 0 ) ; int changeInDegrees = input . getExpectedIntParam ( 1 ) ; Color . HSL hsl = color . getHSL ( ) ; hsl . setH ( hsl . getH ( ) + changeInDegrees ) ; return hsl . getColor ( ) ; }
Adjusts the hue of the given color by the given number of degrees .