RedCross.java
package npw;

import java.awt.Color;
import javax.swing.SwingUtilities;

import painter.SPainter;
import shapes.SCircle;
import shapes.SRectangle;

import static painter.SPainter.*;


public class RedCross {

    // The solution to the RedCross problem

    private void paintTheImage() {
        SPainter painter = new SPainter("RedCross", 600, 600);
        // Draw red rectangle
        SRectangle rectangle = new SRectangle(500, 100);
        painter.setColor(Color.red);
        painter.paint(rectangle);

        painter.tl();
        painter.setColor(Color.red);
        painter.paint(rectangle);


    }


    public RedCross() {
        paintTheImage ();
    }

    public static void main (String [] args) {
        SwingUtilities. invokeLater(new Runnable() {
            public void run() {
                new RedCross();
            }
        });
    }
}