I have an rgb colour stored as an uint. I can create this from the rgb values using the bitwise left and bitwise or opperator 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?