You are here

function sassy_compass__scale_saturation in Sassy 7.2

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

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 35

Code

function sassy_compass__scale_saturation($color, $amount) {
  return sassy_compass__scale_color_value($color, 'saturation', $amount);
}