What is the best way to get a hex color code from a set of three RGB percentages? For example:
[self getHexFromRed:0.5 Green:0.5 Blue:0.5]; // returns @"7F7F7F"
I’ve found several functions for going the other way (creating a color from a hex code), but I can’t seem to find any easy way to do this…
Thanks for any help,
Chris
You could write it from scratch: