// Homework 2 // Amy Nichols // Section D // aenichols@cmu.edu println("Homework #2"); println("Printing the initials: AEN"); size(500, 400); background(#F3FC94); smooth(); int x = 50; int y = 100; int initialWidth = 180; int initialHeight = 100; // reference rectangle - whole image noFill(); //strokeWeight(1); //stroke(#052E31); //rect(x, y, initialWidth, initialHeight); strokeWeight(8); stroke(#0D666F, 95); // A curve beginShape(); curveVertex(x - initialWidth/12, y + initialHeight + initialHeight/10); curveVertex(x, y + initialHeight); curveVertex(x + initialWidth/6, y); curveVertex(x + initialWidth/3, y + initialHeight); curveVertex(x + .42*initialWidth, y + initialHeight + initialHeight/10); endShape(); // A "line" ellipse(x + initialWidth/6, y + .50*initialHeight, .17*initialWidth, .05*initialHeight); // E top curve beginShape(); curveVertex(x + .63*initialWidth, y + initialHeight + .30*initialHeight); curveVertex(x + .63*initialWidth, y + .25*initialHeight); curveVertex(x + .50*initialWidth, y); curveVertex(x + .38*initialWidth, y + .25*initialHeight); curveVertex(x + .50*initialWidth, y + .50*initialHeight); curveVertex(x + .58*initialWidth, y - .30*initialHeight); endShape(); // E bottom curve beginShape(); curveVertex(x + .63*initialWidth, y - .30*initialHeight); curveVertex(x + .63*initialWidth, y + .75*initialHeight); curveVertex(x + .50*initialWidth, y + initialHeight); curveVertex(x + .38*initialWidth, y + .75*initialHeight); curveVertex(x + .50*initialWidth, y + .50*initialHeight); curveVertex(x + .58*initialWidth, y + initialHeight + .30*initialHeight); endShape(); // N left curve beginShape(); curveVertex(x + .67*initialWidth, y - .10*initialHeight); curveVertex(x + .71*initialWidth, y); curveVertex(x + .75*initialWidth, y + .50*initialHeight); curveVertex(x + .71*initialWidth, y + initialHeight); curveVertex(x + .67*initialWidth, y + initialHeight + .10*initialHeight); endShape(); // N right curve beginShape(); curveVertex(x + initialWidth, y - .10*initialHeight); curveVertex(x + (initialWidth - .04*initialWidth), y); curveVertex(x + (initialWidth - .08*initialWidth), y + .5*initialHeight); curveVertex(x + (initialWidth - .04*initialWidth), y + initialHeight); curveVertex(x + initialWidth, y + initialHeight + .10*initialHeight); endShape(); // N connector line(x + .71*initialWidth, y, x + (initialWidth - .04*initialWidth), y + initialHeight); stroke(#FCC11C); strokeWeight(3); // A curve beginShape(); curveVertex(x - initialWidth/12, y + initialHeight + initialHeight/10); curveVertex(x, y + initialHeight); curveVertex(x + initialWidth/6, y); curveVertex(x + initialWidth/3, y + initialHeight); curveVertex(x + .42*initialWidth, y + initialHeight + initialHeight/10); endShape(); // A "line" ellipse(x + initialWidth/6, y + .50*initialHeight, .17*initialWidth, .05*initialHeight); stroke(#980BD6); // E top curve beginShape(); curveVertex(x + .63*initialWidth, y + initialHeight + .30*initialHeight); curveVertex(x + .63*initialWidth, y + .25*initialHeight); curveVertex(x + .50*initialWidth, y); curveVertex(x + .38*initialWidth, y + .25*initialHeight); curveVertex(x + .50*initialWidth, y + .50*initialHeight); curveVertex(x + .58*initialWidth, y - .30*initialHeight); endShape(); // E bottom curve beginShape(); curveVertex(x + .63*initialWidth, y - .30*initialHeight); curveVertex(x + .63*initialWidth, y + .75*initialHeight); curveVertex(x + .50*initialWidth, y + initialHeight); curveVertex(x + .38*initialWidth, y + .75*initialHeight); curveVertex(x + .50*initialWidth, y + .50*initialHeight); curveVertex(x + .58*initialWidth, y + initialHeight + .30*initialHeight); endShape(); stroke(#E01B43); // N left curve beginShape(); curveVertex(x + .67*initialWidth, y - .10*initialHeight); curveVertex(x + .71*initialWidth, y); curveVertex(x + .75*initialWidth, y + .50*initialHeight); curveVertex(x + .71*initialWidth, y + initialHeight); curveVertex(x + .67*initialWidth, y + initialHeight + .10*initialHeight); endShape(); // N right curve beginShape(); curveVertex(x + initialWidth, y - .10*initialHeight); curveVertex(x + (initialWidth - .04*initialWidth), y); curveVertex(x + (initialWidth - .08*initialWidth), y + .5*initialHeight); curveVertex(x + (initialWidth - .04*initialWidth), y + initialHeight); curveVertex(x + initialWidth, y + initialHeight + .10*initialHeight); endShape(); // N connector line(x + .71*initialWidth, y, x + (initialWidth - .04*initialWidth), y + initialHeight);