We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I am just wondering how I would co about adding an alpha transparency value to a colour when the colour is a random colour selected from an array:
The array is called 'colors' and it contains 5 colours.
stroke(colors [(int)random(0, 5)]);
stroke(colors [(int)random(0, 5)], 27);
color c = colors[(int)random(0, 5)]; stroke(c.getRed(), c.getGreen(), c.getBlue(), 127);
Answers
stroke(colors [(int)random(0, 5)], 27);