Skip to content

Instantly share code, notes, and snippets.

@filmibuff
filmibuff / gist:5463827
Created April 25, 2013 22:42
Here's my code. By setting a max_circles constant, this program can be possibly extended to draw more circles with just a minor change on adding a calculation to determine each circle's radius which could be radius-=(radius/MAX_CIRCLES).
import acm.graphics.*;
import acm.program.*;
import java.awt.*;
public class Target2 extends GraphicsProgram {
private static final int MAX_CIRCLES=3;
private static final int PIXELS_PER_INCH=72;
public void run() {
/* Set Initial Radius */
double radius=1;