// Homework 3 // name: chongho lee // Section: A // complete e-mail address: chonghol@andrew.cmu.edu size(400, 400, P3D); println("Homework #3"); println("Printing the initial C"); lights(); noStroke(); background( #FCD805 ); // From top to right (clockwise) pushMatrix(); translate( width/2, height/11, -30); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/2, height/11, -30); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/1.5, height/8, -100); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/1.5, height/8, -100); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/1.2, height/5, -200); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/1.2, height/5, -200); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/1.1, height/2.8, -400); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/1.1, height/2.8, -400); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); // From top to left (anti-clockwise) pushMatrix(); translate( width/3, height/8, 0); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/3, height/8, 0); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/5.5, height/4.5, 20); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/5.5, height/4.5, 20); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/6, height/2.5, 50); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/6, height/2.5, 50); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/4.5, height/1.7, 90); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/4.5, height/1.7, 90); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/2.5, height/1.5, 150); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/2.5, height/1.5, 150); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix(); pushMatrix(); translate( width/1.75, height/1.6, 160); fill ( #4FD82A, 150); sphere ( 30 ); popMatrix(); pushMatrix(); translate( width/1.75, height/1.6, 160); fill ( #FF4C0A, 200); sphere ( 15 ); popMatrix();