public class Star extends PointShape
Modifier and Type | Field and Description |
---|---|
private double[][] |
pentPoints
The points corresponding to the pentagon at the center of the star
|
private double[][] |
tipPoints
The points corresponding to the tips of the star points
|
center
Constructor and Description |
---|
Star(Paint paint,
double[] tl,
double[] br)
Create a Star
|
Modifier and Type | Method and Description |
---|---|
void |
fill(javafx.scene.canvas.GraphicsContext graphics)
Fill the inner portion of this shape
|
double[][] |
getPoints() |
private double[][] pentPoints
private double[][] tipPoints
public Star(Paint paint, double[] tl, double[] br)
paint
- the main class of the programtl
- the top left corner of the starbr
- the bottom right corner of the starpublic double[][] getPoints()
getPoints
in class PointShape
public void fill(javafx.scene.canvas.GraphicsContext graphics)
PointShape
fill
in class PointShape
graphics
- the GraphicsContext onto which the shape is being drawn