Can you please assist me with converting an RGB value to Hex?
For instance, I'm using getPixel(mc.mouseX, mc.mouseY) to return an RGB value - such as 16651277. I would like to convert this number to hex.
What's the simplest method for handling this? Can I do a direct conversion of this RGB value to hex without breaking it down into its R, G, and B components?