Colors are just 32 bit integers where the alpha channel is the highest order 8 bits, followed by red, green, and blue, respectively. You don't need to split them to compare them for equality. Also, each channel is 0-255, so the color you are expressing in those blocks is just a mostly transparent near-black. I don't know if that is intentional or not.