[Solved] Converting Red, Green and Blue to RGB
[ad_1] Abdul’s answer is great, but it can be really slow when creating new objects of class Color thousands of times. The simplest way would be: int rgb = (red << 16 | green << 8 | blue); [ad_2] solved Converting Red, Green and Blue to RGB