Is there a way to convert a string into a color?
I can't get the code below to work because it is looking for Color type and I'm passing it String. I've tried... Color mainColor = (Color) "color"+x;, but, of course, that doesn't work either.
Color color1 = new Color(0, 0, 0), color2 = new Color(100, 100, 100)
int x = 2;
Color mainColor = "color"+x;