import java.awt.*; /** Program 5.12 (draw spiral pattern with spider), from the textbook "Ada 95"
------------------------------------------------------------------
--| draw spiral pattern with spider - use nested loops
--| Author: Michael B. Feldman, The George Washington University
--| Last Modified: July 1995
------------------------------------------------------------------
  
Click on the "close button" (marked X) in the top right corner of the spider's window, to close the application. @see Spider @see Room @see AppFrame @author Java translation by Istvan Mohos, 1996 */ public class Spiral { public static void main(String[] args) { Room woodShed = new Room(); // a Room named "woodShed" new AppFrame("Spiral", woodShed, 150, 150); // window for woodShed Spider itzy = new Spider(); // a Spider named "itzy" woodShed.jumpToMiddle(itzy); // set initial position itzy.setSilk(Color.blue); // set color of trail for (int line = 1; line <= 80; line += 6) { // draw the spiral woodShed.crawl(itzy, line); itzy.turnRight(); } woodShed.showMe(itzy); // display the artwork } // end definition of main method } // end definition of class Spiral;