xxxxxxxxxx
// map, TWO_PI, frameCount, ellipse, rotate
int num = 45;
float x, incr = TWO_PI/num;
void setup() {
size (550, 550);
strokeWeight(.5);
stroke(0);
}
void draw() {
background(0);
translate(width/2, height/2);
for (int i = 0; i < num; i++) {
pushMatrix();
rotate(incr * i * 2);
x = map(sin(frameCount*.009+incr*i), -1, 1, 0, 200);
fill(255, (x*.625 )+ 50, 0);
ellipse(x, 0, x*.25, x*.25);
popMatrix();
}
}