Module: HexaPDF::Content::ColorSpace::ColorUtils
- Included in:
- DeviceCMYK::Color, DeviceGray::Color, DeviceRGB::Color, Universal::Color
- Defined in:
- lib/hexapdf/content/color_space.rb
Overview
This module includes utility functions that are useful for all color classes.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Compares this color to another one by looking at their associated color spaces and their components.
Instance Method Details
#==(other) ⇒ Object
Compares this color to another one by looking at their associated color spaces and their components.
109 110 111 112 |
# File 'lib/hexapdf/content/color_space.rb', line 109 def ==(other) other.respond_to?(:components) && other.respond_to?(:color_space) && components == other.components && color_space == other.color_space end |