Method: Sass::Script::Functions#darken
- Defined in:
- lib/sass/script/functions.rb
#darken($color, $amount) ⇒ Color
Makes a color darker. Takes a color and a number between 0% and 100%, and returns a color with the lightness decreased by that amount.
711 712 713 |
# File 'lib/sass/script/functions.rb', line 711
def darken(color, amount)
_adjust(color, amount, :lightness, 0..100, :-, "%")
end
|