I am doing a little software and I came across this piece of code and I don't understand what it does. It makes my software work perfectly but I don't want to include some piece of codes whose functioning I don't understand. Can anyone help me in understanding this piece of code?
In many code involving pixels, color models and colors, I see the >> sign. What does this >> sign means in the above example?
int red = (c & 0x00ff0000) >> 16;
int green = (c & 0x0000ff00) >> 8;
int blue = c & 0x000000ff;