import java.awt.*; import java.awt.image.BufferedImage; import java.util.ArrayList; import javax.swing.*; /** * Painting random colors with wanderers * Template for SA-2, Dartmouth CS 10, Spring 2016 * * @author Chris Bailey-Kellogg, Dartmouth CS 10, Spring 2016 */ public class Pollock extends DrawingGUI { private static final int width = 800, height = 600; // setup: window size private static final int numBlobs = 20000; // setup: how many blobs private static final int numToMove = 5000; // setup: how many blobs to animate each frame private BufferedImage result; // the picture being painted private ArrayList blobs; // the blobs representing the picture public Pollock() { super("Pollock", width, height); result = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); // Create a bunch of random blobs. blobs = new ArrayList(); for (int i=0; i=0 && x=0 && y