PIBD-11 Ryabov I.V. LabWork01 Simple #1

Closed
ilyaryabovv wants to merge 3 commits from LabWork01 into main
Showing only changes of commit 701a08c583 - Show all commits

View File

@ -190,6 +190,7 @@ public class DrawingStormtrooper
return;
}
Pen pen = new(Color.Black);
Brush bodyColorBrush = new SolidBrush(EntityStormtrooper.BodyColor);
Brush additionalBrush = new SolidBrush(EntityStormtrooper.AdditionalColor);
//Тело бомбардировщика
g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 60, 120, 20);
@ -211,7 +212,7 @@ public class DrawingStormtrooper
Nose[0].X = _startPosX.Value + 20; Nose[0].Y = _startPosY.Value + 80;
Nose[1].X = _startPosX.Value; Nose[1].Y = _startPosY.Value + 70;
Nose[2].X = _startPosX.Value + 20; Nose[2].Y = _startPosY.Value + 60;
g.FillPolygon(additionalBrush, Nose);
g.FillPolygon(bodyColorBrush, Nose);
//Ракеты бомбардировщика
if (EntityStormtrooper.Rockets)
{