home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_21_1988_Transactor_Publishing.d64
/
potential.bas
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
741b
|
34 lines
10 rem ml circles using potential algorithm
20 ifpeek(49152)<>76thenload"hires",8,1
30 ifpeek(32800)<>32thenload"potential.obj",8,1
100 :
110 hires=12*4096:draw=hi+3:plot=dr+3
120 move=pl+3:clscr=mo+3:dmode=cl+3
130 selpc=dm+3:colour=se+3:box=co+3
140 text=bo+3:prnt=te+3:chset=pr+3
150 trap=ch+3
160 :
170 circle=32768+32 :rem not the same as polygon
180 sys hires,0,1,6
190 :
200 sys prnt,17,1,"circles"
210 :
220 xc=155:yc=100:xr=99:yr=79
230 sys circle,xc,yc,xr,yr
240 sys prnt,19,12,"1"
250 :
260 xc=100:yc=120:xr=90:yr=50
270 sys circle,xc,yc,xr,yr
280 sys prnt,10,9,"2"
290 :
300 xc=275:yc=100:xr=30:yr=80
310 sys circle,xc,yc,xr,yr
320 sys prnt,34,12,"3"
330 :
340 xc=52:yc=45:xr=35:yr=30
350 sys circle,xc,yc,xr,yr
360 sys prnt,6,19,"4"
370 :
380 for j=1 to 3000: next
390 end