Convert r,g,b values to a single color value

snipped by vixiom

myColor = (r << 16) | (g << 8) | b;