Раскрасила парусник
This commit is contained in:
parent
e7832c9d05
commit
d164bcbf1f
@ -184,19 +184,6 @@ namespace Sailboat
|
||||
30);
|
||||
g.DrawRectangle(pen, _startPosX + 20, _startPosY + 4, 70, 52);*/
|
||||
|
||||
//основной корпус парусника
|
||||
Point[] hull = new Point[]
|
||||
{
|
||||
new Point(_startPosX + 40, _startPosY + 110),
|
||||
new Point(_startPosX + 140, _startPosY + 110),
|
||||
new Point(_startPosX + 170, _startPosY + 140),
|
||||
new Point(_startPosX + 140, _startPosY + 170),
|
||||
new Point(_startPosX + 40, _startPosY + 170)
|
||||
};
|
||||
g.DrawPolygon(pen, hull);
|
||||
|
||||
g.DrawEllipse(pen, _startPosX + 50, _startPosY + 120, 90, 40);
|
||||
|
||||
//усиленный корпус парусника
|
||||
Point[] hullCooler = new Point[]
|
||||
{
|
||||
@ -206,18 +193,44 @@ namespace Sailboat
|
||||
new Point(_startPosX + 150, _startPosY + 180),
|
||||
new Point(_startPosX + 30, _startPosY + 180)
|
||||
};
|
||||
g.FillPolygon(additionalBrush, hullCooler);
|
||||
g.DrawPolygon(pen, hullCooler);
|
||||
|
||||
//парус
|
||||
//основной корпус парусника
|
||||
|
||||
Brush Brush = new
|
||||
SolidBrush(EntitySailboat.BodyColor);
|
||||
|
||||
Point[] hull = new Point[]
|
||||
{
|
||||
new Point(_startPosX + 40, _startPosY + 110),
|
||||
new Point(_startPosX + 140, _startPosY + 110),
|
||||
new Point(_startPosX + 170, _startPosY + 140),
|
||||
new Point(_startPosX + 140, _startPosY + 170),
|
||||
new Point(_startPosX + 40, _startPosY + 170)
|
||||
};
|
||||
g.FillPolygon(Brush, hull);
|
||||
g.DrawPolygon(pen, hull);
|
||||
|
||||
Brush addBrush = new
|
||||
SolidBrush(Color.Green);
|
||||
|
||||
g.FillEllipse(addBrush, _startPosX + 50, _startPosY + 120, 90, 40);
|
||||
g.DrawEllipse(pen, _startPosX + 50, _startPosY + 120, 90, 40);
|
||||
|
||||
//парус
|
||||
Brush sailBrush = new
|
||||
SolidBrush(Color.Cyan);
|
||||
|
||||
g.DrawLine(pen, new Point(_startPosX + 95, _startPosY + 140),new Point (_startPosX + 95, _startPosY + 20));
|
||||
Point[] sail = new Point[]
|
||||
{
|
||||
new Point(_startPosX + 95, _startPosY + 20),
|
||||
new Point(_startPosX + 160, _startPosY + 140),
|
||||
new Point(_startPosX + 45, _startPosY + 140)
|
||||
};
|
||||
g.FillPolygon(sailBrush, sail);
|
||||
g.DrawPolygon(pen, sail);
|
||||
g.DrawLine(pen, new Point(_startPosX + 95, _startPosY + 140), new Point(_startPosX + 95, _startPosY + 20));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user