/* Flower5g1 Mod of Flower 5 Flower5 grows by scaling up in nofSteps. Zs. Ruttkay 5.2.2009 using Processing 1.0.1 */ int nofPetals = 150; // nof petals of the flower float rotAngle = 5*PI/24; // rotation angle // float rotAngle = 7*PI/24; // float rotAngle = PI/12; // float rotAngle = PI/3; int rx = 3; // 10; // radius ellipse x dir int ry = 3;//8; // radius ellipse y dir float rScale=0.2; boolean noInterior = false; boolean noOutline = false; String fileName="Flower5g_"+rx+"_"+ry+"_"+rScale+"_"+rotAngle+"_"+"line"+"_"+"x_yscale"+"multicol"+".jpg"; float nofSteps = 10, growScale=0; void setup() { size(200, 200); background(255); frameRate(25); stroke (47, 10, 0, 220); // outline color fill (247, 10, 232, 250); translate (100, 100); // flower will be drawn in the middle if (noOutline) noStroke(); // outline is to be drawn or not if (noInterior) noFill(); // fill is to be drawn or notfill(247, 10, 232, 120); draw(); } void drawFlower (){ // drawing starts with outside patels float dScale = nofPetals*rScale; rotate(nofPetals*rotAngle); for (int i=0; i