/* problem 1 of assignment 1 utilizes aspects of the NPW and different functions of the painter */ package npw; import painter.SPainter; import shapes.SRectangle; import java.awt.*; public class RedCross { public static void main(String[] args){ SPainter painter = new SPainter("Red Cross", 600,600); //declare painter SRectangle cross = new SRectangle(500,100); //declare shape painter.setColor(Color.RED); //set color painter.paint(cross); //paint the rectangle in its first position painter.tr(); // painter rotates 90 degrees painter.paint(cross); //paint the rectangle in its second position to complete the cross } }