This commit is contained in:
sofiaivv 2023-10-17 14:47:05 +04:00
parent 2a10ccebd0
commit 2ed6199df5
2 changed files with 11 additions and 7 deletions

View File

@ -153,11 +153,14 @@ namespace MotorBoat
Pen pen = new(Color.Black); Pen pen = new(Color.Black);
Brush additionalBrush = new SolidBrush(EntityMotorBoat.AdditionalColor); Brush additionalBrush = new SolidBrush(EntityMotorBoat.AdditionalColor);
// границы катера Point[] points = { new Point(_startPosX + _boatWight - 40, _startPosY + 10), new Point(_startPosX + _boatWight, _startPosY + 40), new Point(_startPosX + _boatWight - 40, _startPosY + 70) };
g.DrawPolygon(pen, );
g.DrawRectangle(pen, _startPosX, _startPosY, _boatWight - 20, 10);
g.DrawRectangle(pen, _startPosX + 10, _startPosY + 10, _boatWight - 50, 60);
g.DrawEllipse(pen, _startPosX + 15, _startPosY + 25, 60, 30); // палуба
g.DrawPolygon(pen, points);
// штука овальная (палуба?)
g.DrawEllipse(pen, _startPosX + 2, _startPosY + 2, 18, 20);
} }
} }
} }

View File

@ -30,12 +30,13 @@
{ {
SuspendLayout(); SuspendLayout();
// //
// Form1 // FormMotorBoat
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450); ClientSize = new Size(884, 461);
Name = "Form1"; Name = "FormMotorBoat";
StartPosition = FormStartPosition.CenterScreen;
Text = "FormMotorBoat"; Text = "FormMotorBoat";
Load += Form1_Load; Load += Form1_Load;
ResumeLayout(false); ResumeLayout(false);