I have an RGB colour stored as a uint. I can create this from the RGB values using the bitwise left and bitwise or operator in an expression like this:
colour = r<<16 | g<<8 | b;
I want to do the opposite. I have the final number and I want the r, g and b values. Does anyone know how to do this?
1 Answer