Is it really necessary to encode this to an int color? The constructor for the int color will just decode it back to float RGB.