This commit is contained in:
sofiaivv 2023-10-31 03:54:18 +04:00
parent 1675790901
commit dfe7e1f30e

View File

@ -153,9 +153,7 @@ namespace MotorBoat
return;
}
Pen pen = new(Color.Black, 1);
Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor);
Brush additionalBrush = new SolidBrush(EntityMotorBoat.AdditionalColor);
// корпус
Point[] hull = new Point[]
@ -175,13 +173,13 @@ namespace MotorBoat
g.DrawEllipse(pen, _startPosX + 20, _startPosY + 15, 100, 40);
// осн часть
Brush blockBrush = new SolidBrush(Color.Olive);
Brush blockBrush = new SolidBrush(EntityMotorBoat.AdditionalColor);
g.FillRectangle(blockBrush, _startPosX + 20, _startPosY + 15, 80, 40);
g.DrawRectangle(pen, _startPosX + 20, _startPosY + 15, 80, 40);
// двигатель
Brush engineBrush = new
SolidBrush(Color.Olive);
SolidBrush(EntityMotorBoat.AdditionalColor);
g.FillRectangle(engineBrush, _startPosX + 0, _startPosY + 10, 5, 50);
g.DrawRectangle(pen, _startPosX + 0, _startPosY + 10, 5, 50);
}