/* Homework #3 Erica D. Cochran Section B ericac@andrew.cmu.edu Copyright © Erica D. Cochran August 30, 2009 Carnegie Mellon University Exploring Programming with Graphics Pittsburgh, PA, USA All Rights Reserved */ size( 400, 400, P3D ); smooth( ); lights( ); int depth = height; background (250); stroke(255,0,0); //Long vert part of E pushMatrix(); translate(width*.367, height*.5, 0); fill(250,10,10,50); box(.1*width, .667*height, .2*depth); popMatrix(); //Long vert part of E pushMatrix(); translate(width*.367, height*.5, -10); fill(250,10,10,240); box(.1*width, .667*height, .05*depth); popMatrix(); //Top horiz extra bar stroke(250,130,5); pushMatrix(); translate(width*.567, height*.2, -10); fill(250,130,50,250); box(width*.233, height*.033, depth*.05); popMatrix(); //Begin top horiz stroke(0,0,255); pushMatrix(); translate(width*.433, height*.2, 0); fill(10,240,200,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.5, height*.2, 0); fill(10,240,200,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.567, height*.2, 0); fill(10,240,200,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.63, height*.2, 0); fill(10,240,200,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.7, height*.2, 0); fill(10,240,200,200); box(width*.033, height*.066, depth*.2); popMatrix(); //Middle horiz extra bar stroke(250,130,5); pushMatrix(); translate(width*.5, height*.5, -10); fill(250,130,50,250); box(width*.1, height*.033, depth*.05); popMatrix(); //Begin middle horiz stroke(0,0,255); pushMatrix(); translate(width*.433, height*.5, 0); fill(10,175,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.5, height*.5, 0); fill(10,175,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.567, height*.5, 0); fill(10,175,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); //Bottom horiz extra bar stroke(250,130,5); pushMatrix(); translate(width*.567, height*.8, -10); fill(250,130,50,250); box(width*.233, height*.033, depth*.05); popMatrix(); //Begin bottom horiz stroke(0,0,255); pushMatrix(); translate(width*.433, height*.8, 0); fill(10,60,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.5, height*.8, 0); fill(10,60,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.567, height*.8, 0); fill(10,60,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.63, height*.8, 0); fill(10,60,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); pushMatrix(); translate(width*.7, height*.8, 0); fill(10,60,240,200); box(width*.033, height*.066, depth*.2); popMatrix(); println("E");