$alpha = $color | ($transparency << 24); $alpha2 = $color | (($maxTransparency - $transparency) << 24); 

Faced with this code. Could you decipher what the operators "|" do and "<<" in this case.

    1 answer 1

    This is called bit operations. About them you can read here .