lightness

lightness($color)

Returns the lightness component of a color. See the CSS3 HSL specification. Calculated from RGB where necessary via this algorithm.

Parameters:

  • $color (Color)

Returns:

  • (Number) The lightness component, between 0% and 100%

Raises:

  • (ArgumentError) if $color isn’t a color
doc_Sass
2016-11-11 13:09:13
Comments
Leave a Comment

Please login to continue.