Сообщение было отмечено erl27 как решение
Решение
1)
Pascal | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| uses graphABC;
procedure Kor (x,y:integer;m:real);
begin
setpencolor(clbrown);
setbrushcolor(clbrown);
setpenwidth(3);
rectangle(x+round(10*m),y,x+round(110*m),y+round(20*m));
line(x+round(109*m),y+round(18*m),x+round(140*m),y);
line(x+round(140*m),y,x+round(109*m),y);
floodfill(x+round(115*m),y+round(5*m),clbrown);
setpencolor(clwhite);
line(x+round(60*m),y-round(5*m),x+round(140*m),y-round(5*m));
line(x+round(140*m),y-round(5*m),x+round(60*m),y-round(100*m));
line(x+round(60*m),y-round(100*m),x+round(60*m),y-round(5*m));
line(x+round(50*m),y-round(5*m),x+round(10*m),y-round(5*m));
line(x+round(10*m),y-round(5*m),x+round(50*m),y-round(80*m));
line(x+round(50*m),y-round(80*m),x+round(50*m),y-round(5*m));
floodfill(x+round(65*m),y-round(10*m),clwhite);
floodfill(x+round(45*m),y-round(15*m),clwhite);
end;
begin
setbrushcolor(clAqua);
rectangle(0,0,700,500);
Kor (150,200,1);
Kor(350,300,1.5);
Kor(100,400,0.5);
end. |
|
2)
Pascal | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| uses graphABC;
procedure Kor (x,y:integer;m:real);
begin
setpencolor(clbrown);
setbrushcolor(clbrown);
setpenwidth(3);
rectangle(x+round(10*m),y,x+round(110*m),y+round(20*m));
line(x+round(109*m),y+round(18*m),x+round(140*m),y);
line(x+round(140*m),y,x+round(109*m),y);
floodfill(x+round(115*m),y+round(5*m),clbrown);
setpencolor(clwhite);
line(x+round(60*m),y-round(5*m),x+round(140*m),y-round(5*m));
line(x+round(140*m),y-round(5*m),x+round(60*m),y-round(100*m));
line(x+round(60*m),y-round(100*m),x+round(60*m),y-round(5*m));
line(x+round(50*m),y-round(5*m),x+round(10*m),y-round(5*m));
line(x+round(10*m),y-round(5*m),x+round(50*m),y-round(80*m));
line(x+round(50*m),y-round(80*m),x+round(50*m),y-round(5*m));
floodfill(x+round(65*m),y-round(10*m),clwhite);
floodfill(x+round(45*m),y-round(15*m),clwhite);
end;
var x,y:integer;
m:real;
begin
setbrushcolor(clAqua);
rectangle(0,0,700,500);
lockdrawing;
x:=0;
y:=windowheight div 2;
m:=1.2;
repeat
clearwindow(clAqua);
Kor (x,y,m);
sleep(50);
x:=x+2;
redraw;
until x>windowwidth-round(140*m);
end. |
|
Добавлено через 3 секунды
1)
Pascal | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| uses graphABC;
procedure Kor (x,y:integer;m:real);
begin
setpencolor(clbrown);
setbrushcolor(clbrown);
setpenwidth(3);
rectangle(x+round(10*m),y,x+round(110*m),y+round(20*m));
line(x+round(109*m),y+round(18*m),x+round(140*m),y);
line(x+round(140*m),y,x+round(109*m),y);
floodfill(x+round(115*m),y+round(5*m),clbrown);
setpencolor(clwhite);
line(x+round(60*m),y-round(5*m),x+round(140*m),y-round(5*m));
line(x+round(140*m),y-round(5*m),x+round(60*m),y-round(100*m));
line(x+round(60*m),y-round(100*m),x+round(60*m),y-round(5*m));
line(x+round(50*m),y-round(5*m),x+round(10*m),y-round(5*m));
line(x+round(10*m),y-round(5*m),x+round(50*m),y-round(80*m));
line(x+round(50*m),y-round(80*m),x+round(50*m),y-round(5*m));
floodfill(x+round(65*m),y-round(10*m),clwhite);
floodfill(x+round(45*m),y-round(15*m),clwhite);
end;
begin
setbrushcolor(clAqua);
rectangle(0,0,700,500);
Kor (150,200,1);
Kor(350,300,1.5);
Kor(100,400,0.5);
end. |
|
2)
Pascal | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| uses graphABC;
procedure Kor (x,y:integer;m:real);
begin
setpencolor(clbrown);
setbrushcolor(clbrown);
setpenwidth(3);
rectangle(x+round(10*m),y,x+round(110*m),y+round(20*m));
line(x+round(109*m),y+round(18*m),x+round(140*m),y);
line(x+round(140*m),y,x+round(109*m),y);
floodfill(x+round(115*m),y+round(5*m),clbrown);
setpencolor(clwhite);
line(x+round(60*m),y-round(5*m),x+round(140*m),y-round(5*m));
line(x+round(140*m),y-round(5*m),x+round(60*m),y-round(100*m));
line(x+round(60*m),y-round(100*m),x+round(60*m),y-round(5*m));
line(x+round(50*m),y-round(5*m),x+round(10*m),y-round(5*m));
line(x+round(10*m),y-round(5*m),x+round(50*m),y-round(80*m));
line(x+round(50*m),y-round(80*m),x+round(50*m),y-round(5*m));
floodfill(x+round(65*m),y-round(10*m),clwhite);
floodfill(x+round(45*m),y-round(15*m),clwhite);
end;
var x,y:integer;
m:real;
begin
setbrushcolor(clAqua);
rectangle(0,0,700,500);
lockdrawing;
x:=0;
y:=windowheight div 2;
m:=1.2;
repeat
clearwindow(clAqua);
Kor (x,y,m);
sleep(50);
x:=x+2;
redraw;
until x>windowwidth-round(140*m);
end. |
|
2
|