# StarPolygon Demo

## What Is It

The `com.pump.geom.StarPolygon` is a simple implementation of a star with a variable number of points and two radii. The first radius always points directly up, so every star is horizontally symmetrical.

## How To Use It

You can create a 5-point star centered at (0,0) by calling:

    Shape s = new StarPolygon(radius)

Or you can create a more complex star with this constructor:

    Shape s = new StarPolygon(numberOfPoints, radius1, radius2,
    			centerX, centerY)

## How It Works

The `StarPolygon` class acts as a simple bean container for its properties, and it creates a `Path2D` that handles the shape contract.