compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/colors.rb
# a genericized version of lighten/darken so that negative values can be used.
a genericized version of lighten/darken so that negative values can be used.
a genericized version of lighten / darken so that negative values can be used .
def scale_color_value(value, amount)
    if amount > 0
      value += (100 - value) * (amount / 100.0)
    elsif amount < 0
      value += value * amount / 100.0
    end
    value
  end
def scale_color_value ( value , amount ) if amount > 0 value += ( 100 - value ) * ( amount / 100.0 ) elsif amount < 0 value += value * amount / 100.0 end value end
a genericized version of lighten/darken so that negative values can be used.
a genericized version of lighten / darken so that negative values can be used .
value
amount