Method: Inker::Color#saturation

Defined in:
lib/inker/color.rb

#saturationFloat

Calculate the saturation of a color.

Returns:

  • (Float)

    a value between 0.0-1.0 which indicates the saturation of the color



117
118
119
# File 'lib/inker/color.rb', line 117

def saturation
  Color.saturation(@red, @green, @blue)
end