import objectdraw.*;
import java.awt.*;

/*
 * Example Arcs
 *
 * Jim Teresco, Siena College, CSIS 120, Fall 2011
 *
 * $Id: Arcs.java 1531 2011-02-08 21:32:12Z terescoj $
 */

public class Arcs extends WindowController {

    public void begin() {

        // just draw a couple of FilledArc and FramedArc objects to
        // get an idea how to use them.

	// a red one with a start angle of 45, arc angle of 90
        new FramedArc(100, 100, 100, 100, 45, 90, canvas).setColor(Color.red);
        

	// a blue one with a start angle of 180, arc angle of 45
        new FramedArc(220, 100, 100, 100, 180, 45, canvas).setColor(Color.blue);

	// a green filled one with a start angle of 0, arc angle of 200
        new FilledArc(100, 220, 150, 150, 0, 200, canvas).setColor(Color.green);

	// a yellow one with a start angle of 60, arc angle of 300 (PacMan!)
        new FilledArc(220, 220, 100, 100, 60, 300, canvas).setColor(Color.yellow);
    }
}
