The Eggs universe with custom selected parameter values.



See the unmodified source for the Eggs universe and the Oval class

Note. In Exercise 4b, we changed one line of code to render rectangles instead of ovals. (The last lines of code in the Oval class here read

 // g.fillOval(x-w,y-h,2*w,2*h); // oval, size k*dx, k*dy
 // or to make the "Eggs" rectangular
 g.fillRect(x-w,y-h,2*w,2*h); // rectangle, size k*dx, k*dy