# File lib/color/yiq.rb, line 42 def ==(other) other = other.to_yiq other.kind_of?(Color::YIQ) and ((@y - other.y).abs <= Color::COLOR_TOLERANCE) and ((@i - other.i).abs <= Color::COLOR_TOLERANCE) and ((@q - other.q).abs <= Color::COLOR_TOLERANCE) end