void setup(){ size(500, 500); background(255); smooth(); noStroke(); } void draw(){ } void mousePressed() { flower(mouseX, mouseY, int(random(10, 50))); } //draw a flower centered at centerX and centerY with n petals void flower(int centerX, int centerY, int n){ int size = int(random(15, 30)); // size of petals (circles) float angle = 2*PI/n; for (int i=0; i