done
This commit is contained in:
parent
1675790901
commit
dfe7e1f30e
@ -153,9 +153,7 @@ namespace MotorBoat
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Pen pen = new(Color.Black, 1);
|
Pen pen = new(Color.Black, 1);
|
||||||
|
|
||||||
Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor);
|
Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor);
|
||||||
Brush additionalBrush = new SolidBrush(EntityMotorBoat.AdditionalColor);
|
|
||||||
|
|
||||||
// корпус
|
// корпус
|
||||||
Point[] hull = new Point[]
|
Point[] hull = new Point[]
|
||||||
@ -175,13 +173,13 @@ namespace MotorBoat
|
|||||||
g.DrawEllipse(pen, _startPosX + 20, _startPosY + 15, 100, 40);
|
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.FillRectangle(blockBrush, _startPosX + 20, _startPosY + 15, 80, 40);
|
||||||
g.DrawRectangle(pen, _startPosX + 20, _startPosY + 15, 80, 40);
|
g.DrawRectangle(pen, _startPosX + 20, _startPosY + 15, 80, 40);
|
||||||
|
|
||||||
// двигатель
|
// двигатель
|
||||||
Brush engineBrush = new
|
Brush engineBrush = new
|
||||||
SolidBrush(Color.Olive);
|
SolidBrush(EntityMotorBoat.AdditionalColor);
|
||||||
g.FillRectangle(engineBrush, _startPosX + 0, _startPosY + 10, 5, 50);
|
g.FillRectangle(engineBrush, _startPosX + 0, _startPosY + 10, 5, 50);
|
||||||
g.DrawRectangle(pen, _startPosX + 0, _startPosY + 10, 5, 50);
|
g.DrawRectangle(pen, _startPosX + 0, _startPosY + 10, 5, 50);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user