home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 11
/
64er_Magazin_Sonderheft_11_86-11_1986_Markt__Technik_de_Side_A.d64
/
dreh-elipse
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
483b
|
24 lines
100 ifz=0thenz=1:load"grafik modul",8,1
110 cls=938:plot=820
120 poke53265,59:poke53272,24
130 sys cls:print"[147]"
140 :
150 x0=160:y0=100:xr=99:yr=30
160 w=30
170 :
180 t=sin(w*(NULL)/180):s=sqr(1-t*t):y2=0
190 fora=xrto0step-1
200 dy=sqr(xr*xr-a*a)*yr/xr:dx=a:y3=dy
210 x1=s*dx+t*dy:y1=s*dy-t*dx
220 sys plot,x0+x1,y0+y1
230 sys plot,x0-x1,y0-y1
240 x1=-s*dx+t*dy:y1=-s*dy-t*dx
250 sys plot,x0-x1,y0+y1
260 sys plot,x0+x1,y0-y1
270 ifdy>y2+1thendy=dy-1:goto210
280 y2=y3
290 nexta
300 :
310 poke198,0:wait198,1:print"[147]"
320 poke53265,27:poke53272,21