/* Flower3g Flower3 growing in nofSteps. Not only the size is scaled, but the petals open. Experiment with opening the flower at the end, slowly. Zs. Ruttkay 2.2.2009 using Processing 1.0.1 */ float nofSteps = 10; // the flower will grow in these number of steps float growScale = 0; int nofPetals = 15; // nof petals of the flower float rotangle = PI/(1.5*nofPetals); // rotation angle float startangle = -(PI+nofPetals*rotangle)/2; int rx = 40; // radius ellipse x dir int ry = 1; // radius ellipse y dir int rf = 40; // distance from flower center to petal center, should not be bigger than 1.5 rx, You may experiment with rf