-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssr_sterngr.bas
271 lines (269 loc) · 8.68 KB
/
ssr_sterngr.bas
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
!!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SSR SONNENSYSTEMROTATION
Info Subroutine ssr_sterngr.bas
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
© 2023 by Dietmar Gerald Schrausser
!!
c=cc
ed04=sx/4 %Anfagsvergrösserung
d=16 %Abstand
ds=r_sne_km %Sonne r
a0=2*(ds/ds) %Referenzdurchmesser
dx=r_srs_km %Sirius
a1=2*(dx/ds)
dx=r_atr_km %Altair
a2=2*(dx/ds)
dx=r_vga_km %Vega
a3=2*(dx/ds)
dx=r_plx_km %Pollux
a4=2*(dx/ds)
dx=r_adb_km %Aldebaran
a5=2*(dx/ds)
dx=r_rgl_km %Rigel
a6=2*(dx/ds)
dx=r_dnb_km %Deneb
a7=2*(dx/ds)
dx=r_838_km %V838
a8=2*(dx/ds)
dx=r_anr_km %Antares
a9=2*(dx/ds)
dx=r_rsg_km %RSGC2-01
a10=2*(dx/ds)
sw=1
swv=1
GR.TEXT.BOLD 1
DO %Start
GR.CLS
GR.TEXT.SETFONT "courier","",1
GR.TEXT.ALIGN 3
IF ed04>0.3 %Sonnensystem
GR.COLOR c,c,c,c/2,1
gr=a0*ed04
IF gr<1
GR.COLOR c/2,c,c,c/2,1
IF gr< 0.5
GR.COLOR c/4,c,c,c/2,1
ENDIF
gr=1
ENDIF
GR.CIRCLE cl,mx,my-198+(0*d*ed04),gr %Sonne
GR.COLOR 180,c,c,0,1 %Merkur
GR.CIRCLE cl,mx, my-198+(1*2.3*ed04),ed04*2*((r_mkr_km*1.2)/ds)
GR.COLOR 160,c,c,c,1 %Venus
GR.CIRCLE cl,mx, my-198+(1*2.4*ed04),ed04*2*(r_vns_km/ds)
GR.COLOR c,60,60,c,1 %Erde
GR.CIRCLE cl,mx, my-198+(1*2.5*ed04),ed04*2*(r_erd_km/ds)
GR.COLOR 100,c,c,c,1 %Mond
GR.CIRCLE cl,mx-2*((d_mnd_m/1000)/ds)*ed04, my-198+(1*2.5*ed04),ed04*2*((r_mnd_km)/ds)
IF ed04>139
GR.COLOR c/2,c,c,c,1
GR.TEXT.ALIGN 1
GR.TEXT.SIZE txz3
GR.TEXT.DRAW tx,mx+15, my-195+(1*2.5*ed04) ,"Erde"
GR.TEXT.DRAW tx,16, my-195+(1*2.5*ed04) ,"Mond"
ENDIF
GR.COLOR c,c,150,150,1 %Mars
GR.CIRCLE cl,mx, my-198+(1*2.6*ed04),ed04*2*(r_mrs_km/ds)
GR.COLOR 120,c-20,170,0,1 %Jupiter
GR.CIRCLE cl,mx, my-198+(1*3*ed04),ed04*2*(r_jpt_km/ds)
GR.COLOR 70,c,c,c,1 %Saturn
GR.CIRCLE cl,mx, my-198+(1*3.6*ed04),ed04*2*(r_stn_km/ds)
GR.LINE ln, mx-0.4*ed04,my-198+(1*3.64*ed04), mx+0.4*ed04, my-198+(1*3.56*ed04)
GR.COLOR 150, 120, 120, 200,1 %Uranus
GR.CIRCLE cl,mx, my-198+(1*4.1*ed04),ed04*2*(r_urs_km/ds)
GR.COLOR 70,50,50,c,1 %Neptun
GR.CIRCLE cl,mx, my-198+(1*4.5*ed04),ed04*2*(r_npt_km/ds)
IF ed04<100
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/23)*ed04
GR.TEXT.DRAW tx, sx-20,my-198+(0.0*d*ed04) ,"Sonne"
GR.TEXT.SIZE (11/23)*ed04
GR.TEXT.DRAW tx, sx-20,my-198+(0.05*d*ed04) ,"r="+INT$(ds)+"km"
ENDIF
ENDIF
dsx=2.2 %Abstandsfaktor
IF ed04>0.2
GR.COLOR c,c,c,c/2,1
gr=a1*ed04
IF gr<1
GR.COLOR c/2,c,c,c/2,1
IF gr< 0.5
GR.COLOR c/4,c,c,c/2,1
ENDIF
gr=1
ENDIF
GR.CIRCLE cl,mx,my-200+((1*d*ed04)*((a1/a0)/dsx)),gr
IF ed04<115
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/18)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((1*d*ed04)*((a1/a0)/dsx)) ,"Sirius"
GR.TEXT.SIZE (11/18)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((1.09*d*ed04)*((a1/a0)/dsx)) ,"r="+INT$(r_srs_km)+"km"
ENDIF
ENDIF
dsx=2.15 %Abstandsfaktor
GR.COLOR c,c,c,c/2,1
gr=a2*ed04
IF gr<1
GR.COLOR c/2,c,c,c/2,1
IF gr< 0.5
GR.COLOR c/4,c,c,c/2,1
ENDIF
gr=1
ENDIF
GR.CIRCLE cl,mx,my-200+((2*d*ed04)*((a2/a0)/dsx)),gr
IF ed04<140
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/13)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((2*d*ed04)*((a2/a0)/dsx)) ,"Altair"
GR.TEXT.SIZE (11/13)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((2.13*d*ed04)*((a2/a0)/dsx)) ,"r="+INT$(r_atr_km)+"km"
ENDIF
dsx=2.6 %Abstandsfaktor
GR.COLOR c,c,c,c/2,1
gr=a3*ed04
IF gr<1
GR.COLOR c/2,c,c,c/2,1
IF gr< 0.5
GR.COLOR c/4,c,c,c/2,1
ENDIF
gr=1
ENDIF
GR.CIRCLE cl,mx,my-200+((3*d*ed04)*((a3/a0)/dsx)),gr
IF ed04<180
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/9)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((3*d*ed04)*((a3/a0)/dsx)) ,"Vega"
GR.TEXT.SIZE (11/9)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((3.13*d*ed04)*((a3/a0)/dsx)) ,"r="+INT$(r_vga_km)+"km"
ENDIF
dsx=7.2 %Abstandsfaktor
GR.COLOR c,c,150,0,1
IF ed04<30
GR.CIRCLE cl,mx,my-200+((4*d*ed04)*((a4/a0)/dsx)),a4*ed04
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/6)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((4*d*ed04)*((a4/a0)/dsx)) ,"Pollux"
GR.TEXT.SIZE (11/6)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((4.1*d*ed04)*((a4/a0)/dsx)) ,"r="+INT$(r_plx_km)+"km"
ENDIF
dsx=17.5 %Abstandsfaktor
GR.COLOR c-20,c,0,0,1
IF ed04<40
GR.CIRCLE cl,mx,my-200+((5*d*ed04)*((a5/a0)/dsx)),a5*ed04
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/2.6)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((5*d*ed04)*((a5/a0)/dsx)) ,"Aldebaran"
GR.TEXT.SIZE (11/2.6)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((5.15*d*ed04)*((a5/a0)/dsx)) ,"r="+INT$(r_adb_km)+"km"
ENDIF
dsx=15.2 %Abstandsfaktor
GR.COLOR 255,20,20,c,1
IF ed04<60
GR.CIRCLE cl,mx,my-200+((6*d*ed04)*((a6/a0)/dsx)),a6*ed04
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/1)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((6*d*ed04)*((a6/a0)/dsx)) ,"Rigel"
GR.TEXT.SIZE (11/1)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((6.24*d*ed04)*((a6/a0)/dsx)) ,"r="+INT$(r_rgl_km)+"km"
ENDIF
dsx=20 %Abstandsfaktor
GR.COLOR 150,20,20,c,1
IF ed04<120
GR.CIRCLE cl,mx,my-200+((7*d*ed04)*((a7/a0)/dsx)),a7*ed04
IF ed04<120
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/0.4)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((7*d*ed04)*((a7/a0)/dsx)) ,"Deneb"
GR.TEXT.SIZE (11/0.4)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((7.24*d*ed04)*((a7/a0)/dsx)) ,"r="+INT$(r_dnb_km)+"km"
ENDIF
ENDIF
dsx=23 %Abstandsfaktor
GR.COLOR 35,c,c,c,1
IF ed04<150
GR.CIRCLE cl,mx,my-200+((8*d*ed04)*((a8/a0)/dsx)),a8*ed04
GR.COLOR 200,0,0,0,1
GR.CIRCLE cl,mx,my-200+((8*d*ed04)*((a8/a0)/dsx)),(a8*ed04)/2.1
GR.COLOR 85,c,0,0,1
GR.CIRCLE cl,mx,my-200+((8*d*ed04)*((a8/a0)/dsx)),(a8*ed04)/7
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/0.25)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((8*d*ed04)*((a8/a0)/dsx)) ,"V838"
GR.TEXT.SIZE (11/0.25)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((8.24*d*ed04)*((a8/a0)/dsx)) ,"r="+INT$(r_838_km)+"km"
ENDIF
dsx=19.4 %Abstandsfaktor
GR.COLOR 120,c,150,0,1
IF ed04<180
GR.CIRCLE cl,mx,my-200+((9*d*ed04)*((a9/a0)/dsx)),a9*ed04
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/0.1)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((9*d*ed04)*((a9/a0)/dsx)) ,"Antares"
GR.TEXT.SIZE (11/0.1)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((9.35*d*ed04)*((a9/a0)/dsx)) ,"r="+INT$(r_anr_km)+"km"
ENDIF
dsx=30.7 %Abstandsfaktor
GR.COLOR 100,c,0,0,1
IF ed04<200
GR.CIRCLE cl,mx,my-200+((10*d*ed04)*((a10/a0)/dsx)),a10*ed04
GR.COLOR c/2,c,c,c,1
GR.TEXT.SIZE (18/0.05)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((10*d*ed04)*((a10/a0)/dsx)) ,"RSGC2-01"
GR.TEXT.SIZE (11/0.05)*ed04
GR.TEXT.DRAW tx, sx-20,my-200+ ((10.40*d*ed04)*((a10/a0)/dsx)) ,"r="+INT$(r_rsg_km)+"km"
ENDIF
ln=(ds/((ed04/(sx/4))))*2 %km
GR.COLOR c-55,c/2,c/2,c/2,1
GR.TEXT.ALIGN 3
GR.TEXT.SIZE txz3
lna=ln/(au_/1000)
IF lna/2<1
GR.TEXT.DRAW tx,mx,sy-5,FORMAT$("0.###",lna/2)+"AE"
ELSE
GR.TEXT.DRAW tx,mx,sy-5,FORMAT$("###.###",lna/2)+"AE"
ENDIF
GR.TEXT.ALIGN 3
GR.TEXT.DRAW tx,mx,sy-30,FORMAT$("### ###### ######",ln/2)+"km"
GR.LINE ln, 1,sy-25,mx-1,sy-25
GR.LINE ln, 1,sy-13,1,sy-30
GR.LINE ln, mx-1,sy-13,mx-1,sy-30
GR.LINE ln, mx/2,sy-13,mx/2,sy-30
GR.TEXT.ALIGN 1
GR.TEXT.SIZE txzi
GR.COLOR cc-55, c/2, c/2, c/2, 1
GR.TEXT.DRAW tx,20,40,"i Größenverhältnisse in der Galaxie:"
GOSUB sourceg2
GR.LINE ln, 1,50,sx-1,50
GR.RENDER
ve=1.01 %Geschwindigkeit
IF swv=-1 %Vollautomatik
IF sw=1 %Vorwärts
ed04=ed04/ve
IF ed04<sx/15000:PAUSE 3000:sw=-1:ENDIF
ENDIF
IF sw=-1 %Rückwärts
ed04=ed04*ve
IF ed04>sx/4:PAUSE 3000:sw=1:ENDIF
ENDIF
ENDIF
GR.TOUCH tc,tx,ty
IF tc
IF swv=1
IF tx>mx&ty>my&ed04<sx/4:ed04=ed04*ve:ENDIF
IF tx>mx&ty<my&ed04>sx/15000:ed04=ed04/ve:ENDIF
ENDIF
IF tx<mx:swv=swv*-1: ENDIF
! % Umschaltung: Manuell/Vollauto.
ENDIF
GR.TOUCH2 t2,tx,ty
IF t2
GOTO END04
ENDIF
UNTIL 0
END04:
GR.TEXT.BOLD 0
t2=0
PAUSE 100
! % END %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%