A mask is a number used with a bitwise operation to select some bits of another number: x & m keeps the bits of x where m has a and clears the others; x | m sets them to ; x ^ m flips them. The mask 1 << i has a single , at position .
x (bits are numbered from on the right). The mask has a at position and elsewhere; and copies every bit of x except that one.0xF4A261 as three bytes. Red is (c >> 16) & 0xFF, green (c >> 8) & 0xFF, blue c & 0xFF.