You are here

function sassy_compass__scale_lightness in Sassy 7.2

Same name and namespace in other branches
  1. 7.3 sassy_compass/functions/colors.inc \sassy_compass__scale_lightness()

Scales a color's lightness by some percentage. If the amount is negative, the color is scaled darker, if positive, it is scaled lighter. This will never return a pure light or dark color unless the amount is 100%.

File

extensions/compass/functions/colors.inc, line 17

Code

function sassy_compass__scale_lightness($color, $amount) {
  return sassy_compass__scale_color_value($color, 'lightness', $amount);
}