Target.java
1    /* 
2     * Program to paint a blue dot in the context of the Nonrepresentational Painting World, NPW. 
3     */
4    
5    
6    package npw;
7    
8    import painter.SPainter;
9    import shapes.SCircle;
10   
11   import javax.swing.*;
12   import java.awt.*;
13   
14   public class Target {
15       // solution to blue dot problem
16   
17       private void paintTheImage() {
18           SPainter yo = new SPainter("Target", 600,600);
19           SCircle notdot = new SCircle(201);
20           yo.setColor(Color.red);
21           yo.paint(notdot);
22           SCircle meddot = new SCircle(134);
23           yo.setColor(Color.white);
24           yo.paint(meddot);
25           SCircle littilebruh = new SCircle(67);
26           yo.setColor(Color.red);
27           yo.paint(littilebruh);
28   
29   
30   
31       }
32       //required infrastructure
33       public Target() {
34           paintTheImage();
35   
36       }
37       public static void main(String[] args) {
38           SwingUtilities.invokeLater(new Runnable() {
39               public void run() {
40                   new Target();
41   
42               }
43   
44           });
45       }
46   }
47