hsla

hsla($hue, $saturation, $lightness, $alpha)

Creates a Color from hue, saturation, lightness, and alpha 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
  • $alpha (Number) The opacity of the color. Must be between 0 and 1, inclusive

Returns:

  • (Color)

Raises:

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

Please login to continue.