hsl

hsl($hue, $saturation, $lightness)

Creates a Color from hue, saturation, and lightness values. Uses the algorithm from the CSS3 spec.

Parameters:

  • $hue (Number) The hue of the color. Should be between 0 and 360 degrees, inclusive
  • $saturation (Number) The saturation of the color. Must be between 0% and 100%, inclusive
  • $lightness (Number) The lightness of the color. Must be between 0% and 100%, inclusive

Returns:

  • (Color)

Raises:

  • (ArgumentError) if $saturation or $lightness are out of bounds or any parameter is the wrong type
doc_Sass
2016-11-11 13:09:08
Comments
Leave a Comment

Please login to continue.