PIbd-21 Belianin N.N. LabWork04 Hard #5

Closed
Belnik wants to merge 12 commits from LabWork04 into LabWork03
Showing only changes of commit 0667fc1a0a - Show all commits

View File

@ -117,10 +117,11 @@ public class DrawingArmoVehicle {
return;
}
// body
g.setColor(ArmoVehicle.BodyColor);
int[] xPoints = {_startPosX + 5, _startPosX + 140, _startPosX + 130, _startPosX + 12};
int[] yPoints = {_startPosY + 30, _startPosY + 30, _startPosY + 42, _startPosY + 42};
int nPoints = 4;
int nPoints = xPoints.length;
g.drawPolygon(xPoints, yPoints, nPoints);
g.fillPolygon(xPoints, yPoints, nPoints);