public class Triangle extends Shape
Modifier and Type | Field and Description |
---|---|
protected double |
base |
protected double |
height |
Constructor and Description |
---|
Triangle(double x,
double y,
double base,
double height,
javafx.scene.paint.Color color)
Constructor for the Triangle object
|
Modifier and Type | Method and Description |
---|---|
void |
draw(edu.msoe.winplotterfx.WinPlotterFX plotter)
A method that draws the Triangle using the WinPlotterFX
|
setColor, setPenColor
public Triangle(double x, double y, double base, double height, javafx.scene.paint.Color color)
x
- The lower left corner x-value of the Triangley
- The lower left corner y-value of the Trianglebase
- The length of the base of the Triangleheight
- The height of the Trianglecolor
- The color of the Triangle