module Color
def ==(other)
All values are compared as floating-point values, so two colors will be reported
approximate than non-converted comparisons.
type as the current color. Such converted color comparisons will always be more
Compares the `other` color to this one. The `other` color will be coerced to the same
#
def ==(other) other.is_a?(Color) && to_internal.zip(coerce(other).to_internal).all? { near?(_1, _2) } end