public class circle {
float x, y;
int circleShape;
public circle(float x, float y) {
this.x = x;
this.y = y;
circleShape = floor(random(3));
}
public void drawcircle() {
if (circleShape == 0) {
circle1();}
}
private void circle1() {
fill(random(1000), random(1000), random(1000));
stroke(200);
strokeWeight(3);
circle(x+25, y+25, 40);
}
}
ArrayList circleList = new ArrayList();
boolean g = false;
void setup(){
size(1000, 1000);
}
void draw() {
background(0);
for (int i = 0; i < circleList.size(); i++) {
circleList.get(i).drawcircle();
}
}
void mousePressed() {
circleList. add(new circle(mouseX, mouseY));
}