Color blocks are not idempotent

I just discovered that the color blocks are not idempotent :anger:
grafik
It could cause confusion

https://ai2.metricrat.co.uk/scraps/android-and-html-colour-codes

Did that -65536 come out of an AI2 color operation?

Definitely
grafik

@ewpatton has already explained all of this somewhere (probably on the old forum)

This is probably the old Forum post?

1 Like

If you stretch equality to include modulo 2^32, are the two values ‘equal’ ?

Jep, fixed it
grafik
So if you want to compare colors and want to make sure theyare equal, compare with the modulo block

I have published an example:

(added to Colors FAQ)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.