Method: Colorable::Color#-

Defined in:
lib/colorable/color.rb

#-(other) ⇒ Object

Color subtruction

other can be:

Color object: apply maximum compositing with its RGBs.
Array of values or Fixnum: subtruction applies based on its color mode.


140
141
142
143
144
145
146
147
# File 'lib/colorable/color.rb', line 140

def -(other)
  case other
  when Color
    new_by_composed_rgb(:-, other)
  else
    self.class.new @mode - other
  end
end