shoes/shoes — Issue #175: == is broken for Colors
Author: PragTob
Created: 2012-01-01 13:44:16+00:00
State: open

Run the following script in shows:

Shoes.app do
c1 = rgb 255, 120, 0
c2 = rgb 0, 255, 120

if c1 == c2
alert "Same!!!"
else
alert "Different!!!"
end
end

It will claim that the 2 colors are the same although they are not :-/ It seems that shoes only checks for the presence of all the values and not whether or not they are in the right order (e.g. assigned to red or blue).

Unfortunately I failed to find the right place for this in the source (and fear that it is in C ;-) ) - however if someone points me to the right place I'd try to fix it myself :-)

cheers,
Tobi