готовая лаба 4
This commit is contained in:
parent
4e005d11fe
commit
93f32ceef3
@ -50,7 +50,7 @@ namespace RoadTrain.DrawingObjects
|
||||
{
|
||||
x = 0;
|
||||
}
|
||||
if (y < 0 || y + _roadTrainWidth > _pictureHeight)
|
||||
if (y < 0 || y + _roadTrainHeight > _pictureHeight)
|
||||
{
|
||||
y = 0;
|
||||
}
|
||||
@ -109,7 +109,7 @@ namespace RoadTrain.DrawingObjects
|
||||
g.DrawRectangle(pen, _startPosX, _startPosY + 50, 160, 20);
|
||||
g.FillRectangle(bodyBrush, _startPosX, _startPosY + 50, 160, 20);
|
||||
g.DrawEllipse(pen, _startPosX + 5, _startPosY + 70, 30, 30); //колесо
|
||||
g.FillEllipse(bodyBrush, _startPosX + 5, _startPosY + 70 , 30, 30);
|
||||
g.FillEllipse(bodyBrush, _startPosX + 5, _startPosY + 70, 30, 30);
|
||||
g.DrawEllipse(pen, _startPosX + 40, _startPosY + 70, 30, 30); //колесо
|
||||
g.FillEllipse(bodyBrush, _startPosX + 40, _startPosY + 70, 30, 30);
|
||||
g.DrawEllipse(pen, _startPosX + 120, _startPosY + 70, 30, 30); //колесо
|
||||
|
Loading…
Reference in New Issue
Block a user