float xflower, yflower; float size; void setup(){ size(600,200); // try changing the window size size = 5; } void draw(){ xflower = random(0,width); yflower = random(0,height); drawflower(); // calls the drawflower() function defined below } // This is a function definition. It defines a block of code that is run // whenever its name (in this case drawflower()) is called. void drawflower(){ size = (4 + yflower) * 0.03; fill(255,0,0); ellipse(xflower,yflower,size,size); // draws the center of the flower fill(255,200,200); // try changing the color, or adding a random component to the color stroke(200,100,100); for(float a = 0; a < 2*PI; a = a + 0.4){ // for loop ellipse(xflower+size*sin(a) ,yflower + size*cos(a),size,size); } }