get a random Colour constant?
-
I know I saw somewhere that it's possible to randomly select a Colour constant, but I can't find it anywhere.
Anybody know? -
If you want to use the colour constants you'd need to put them all in an array an use a random integer as the index.
If you just want a random colour then you can use something like
g.setColour(Math.randInt(1000000, 999999));
- you might need to play around with the range. -
@d-healey Yes I know I can do that but I think I saw @Christoph-Hart use another way to set a random Colour constant...