Method: ColorMath::Adjust#saturation

Defined in:
lib/colormath/adjust.rb

#saturation(color, delta) ⇒ Object

Adjust the saturation by delta, stopping at 0 or 1



13
14
15
# File 'lib/colormath/adjust.rb', line 13

def saturation(color, delta)
  HSL.new(color.hue, color.saturation + delta, color.luminance)
end