adjust_hue

adjust_hue($color, $degrees)

Changes the hue of a color. Takes a color and a number of degrees (usually between -360deg and 360deg), and returns a color with the hue rotated along the color wheel by that amount.

Examples:

adjust-hue(hsl(120, 30%, 90%), 60deg) => hsl(180, 30%, 90%)
adjust-hue(hsl(120, 30%, 90%), -60deg) => hsl(60, 30%, 90%)
adjust-hue(#811, 45deg) => #886a11

Parameters:

  • $color (Color)
  • $degrees (Number) The number of degrees to rotate the hue

Returns:

  • (Color)

Raises:

  • (ArgumentError) if either parameter is the wrong type
doc_Sass
2016-11-11 13:09:02
Comments
Leave a Comment

Please login to continue.