/*
afternoon gardens
Kawandeep Virdee
*/
int width = 600;
int height = 600;
ArrayList circles = new ArrayList();
void setup() {
colorMode(HSB, 360, 100, 100, 100);
size(width, height);
//frameRate(15);
smooth();
for ( int r=0; r<500; r+=10) {
for (int p=0; p<360; p+=20) {
float cx = r*cos(radians(p));
float cy = r*sin(radians(p));
Circle c = new Circle(width/2+cx, height/2+cy);
circles.add(c);
}
}
}
void draw() {
color bColor = color(0, 0, 100);
fill(bColor);
noStroke();
rect(0, 0, width, height);
for ( int i=0; i<circles.size(); i++) {
Circle c = (Circle) circles.get(i);
c.update();
c.display();
}
for ( int i=0; i<circles.size(); i++) {
Circle c = (Circle) circles.get(i);
if (c.rem) {
circles.remove(c);
}
}
// save("images/"+str(frameCount)+".gif");
}
class Circle {
float cx, cy, r, cConstant;
boolean rem;
Circle(float x, float y) {
cx = x;
cy = y;
r=200;
rem=false;
cConstant = 10;
}
void update() {
// r=r+1;
}
void display() {
pushMatrix();
translate(cx, cy);
noFill();
stroke(100+r/2, 255, 255);
strokeWeight(1);
ellipse(0, 0, r, r);
popMatrix();
}
}
(via sydkneeeee)





