- Feb 21, 2017
- 1,240
- 4,958
Fuck that, I meant how do I make a right angled triangle in Java using Graphics?
You don't have permission to view the spoiler content.
Log in or register now.
This is my method so far:
Code:
public void paint(Graphics g)
{
super.paint(g);
int xpoints[] = {250, 200, 100, 250, 200};
int ypoints[] = {175, 250, 125, 125, 200};
int npoints = 3;
//g.drawOval(399,419,407,450);
g.drawPolygon(xpoints,ypoints,npoints);
//g.fillOval(399,219,407,450);
}
Should I cut down on the number of points in the arrays, or should I leave it be?
Thanks.