PIbd-21 Belianin N.N. LabWork04 Hard #5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user