How to freely choose a color among 3 predefined colors for the fill() function
in
Programming Questions
•
3 years ago
I want color c can randomly be c1, c2, or c3
such as when I write:
fill(c);
ellipse(width/2,height/2,10,10);
I hope the color fill ellipse can randomly be c1, c2, or c3 that I predefined.
such as when I write:
fill(c);
ellipse(width/2,height/2,10,10);
I hope the color fill ellipse can randomly be c1, c2, or c3 that I predefined.
1
