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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
| program vsel;
uses crt, Graph;
const Grad=0.0174532;
var k,i,x,y:integer;
RSun, rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN : integer;
procedure MakeAllRight;
var Gd,Gm:integer;
allisright: boolean;
a,b:word;
begin
Gd:=VGA;
Gm:=VGAhi;
InitGraph(Gd, Gm, '../BIN');
If GraphResult = grOk then allisright:=true;
if Gd in [hercmono, EGA,VGA,EGA64, MCGA] then SetGraphMode(Gm-1);
a:=7750;
b:=7750;
Setaspectratio(a,b);
end;
procedure rasch (var i, rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN : integer);
var ks : integer;
sM,sV,sZ, sMs,sY,sS,sU,sN,k: real;
begin
RSun:=15;
rM:=2;
ks:=8;
k:=RSun+rM+ks;
xM:=319+round(k*sin(i*Grad));
yM:=174-round(k*cos(i*Grad));
{ ks:=round(2*ks); }
rV:=round(2.5*rM);
k:=k+rM+ks+rV;
xV:=319+round(k*sin(i*Grad));
yV:=174-round(k*cos(i*Grad));
{ks:=round(2.5*ks);}
rZ:=round(2.63*rM);
k:=k+rV+ks+rZ;
xZ:=319+round(k*sin(i*Grad));
yZ:=174-round(k*cos(i*Grad));
{ ks:=round(3*ks);}
rMs:=round(1.4*rM);
k:=k+rZ+ks+rMs;
xMs:=319+round(k*sin(i*Grad));
yMs:=174-round(k*cos(i*Grad));
{ ks:=round(3.5*ks);}
rU:=round(6*rM);
k:=k+rMs+ks+rU;
xU:=319+round(k*sin(i*Grad));
yU:=174-round(k*cos(i*Grad));
{ ks:=round(5*ks); }
rS:=round(4*rM);
k:=k+rU+ks+rS;
xS:=319+round(k*sin(i*Grad));
yS:=174-round(k*cos(i*Grad));
{ ks:=round(5.5*ks); }
rY:=round(3*rM);
k:=k+rS+ks+rY;
xY:=319+round(k*sin(i*Grad));
yY:=174-round(k*cos(i*Grad));
{ ks:=round(5*ks);}
rN:=round(3*rM);
k:=k+rY+ks+rN;
xN:=319+round(k*sin(i*Grad));
yN:=174-round(k*cos(i*Grad));
end;
procedure ris(rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN :integer);
var tsM, tsV, tsZ, tsMs,tsY, tsS, tsU, tsN :integer;
procedure makeSun;
var X,Y,RSun:integer;
begin
RSun:=15;
X:=(GetMaxx div 2);
Y:=(GetMaxy div 2);
SetColor(14);
Circle(X,Y,RSun);
SetFillStyle(1,14);
FloodFill(X,Y,14);
end;
begin
delay(100);
makeSun;
tsM:=2;
setcolor(tsM);
circle(xM,yM,rM);
setfillstyle(1,tsM);
floodfill(xM,yM,tsM);
tsV:=6;
setcolor(tsV);
circle(xV,yV,rV);
setfillstyle(1,tsV);
floodfill(xV,yV,tsV);
tsZ:=3;
setcolor(tsZ);
circle(xZ,yZ,rZ);
setfillstyle(1,tsZ);
floodfill(xZ,yZ,tsZ);
tsMs:=6;
setcolor(tsMs);
circle(xMs,yMs, rMs);
setfillstyle(1,tsMs);
floodfill(xMs,yMs, tsMs);
tsU:=14;
setcolor(tsU);
circle(xU,yU, rU);
setfillstyle(1,tsU);
floodfill(xU,yU,tsU);
tsS:=15;
setcolor(tsS);
circle(xS,yS, rS);
setfillstyle(1,tsS);
floodfill(xS,yS, tsS);
tsY:=8;
setcolor(tsY);
circle(xY,yY, rY);
setfillstyle(1,tsY);
floodfill(xY,yY,tsY);
tsN:=9;
setcolor(tsN);
circle(xN,yN, rN);
setfillstyle(1,tsN);
floodfill(xN,yN, tsN);
end;
begin
MakeAllRight;
RSun:=15;
i:=1;
setactivepage(0);
rasch(i,rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN);
ris (rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN);
setvisualpage(0);
while not keypressed do
begin
if i mod 2 = 1 then begin setvisualpage(1); setactivepage(0); end
else begin setvisualpage(0);setactivepage(1); end;
rasch(i,rM,xM,yM, rV,xV,yV, rZ,xZ,yZ,rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN);
cleardevice;
i:=i+1; if i=360 then i:=1;
rasch(i,rM,xM,yM, rV,xV,yV, rZ,xZ,yZ,rMs,xMs,yMs, rY,xY,yY, rS,xS,yS, rU,xU,yU, rN,xN,yN);
ris (rM,xM,yM, rV,xV,yV, rZ,xZ,yZ, rMs,xMs,yMs, rY,xY,yY,
rS,xS,yS, rU,xU,yU, rN,xN,yN);
if i=360 then i:=1;
end;
end. |