randomly fade dots?

edited October 2014 in How To...

Hi, A very basic question here. I am totally new to this. I have 3 dots, Red,Yellow,Blue. I simply want to make them fade in and out independent of each other and at random intervals. Would be also nice to shift saturation as another fading elements in each. How do I do this? Here are the dots I made. void setup() { size(1200,800); background(0); }

void draw() { stroke(255,3,5,127); fill(255,3,5,40); ellipse(300,400,200,200);

stroke(250,251,5,127); fill(250,251,5,40); ellipse(600,400,200,200);

stroke(0,0,255,127); fill(0,0,255,40); ellipse(900,400,200,200); }

Answers

Sign In or Register to comment.