home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1991 September
/
1991-09.d64
/
medres.demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
569b
|
23 lines
100 rem driver demonstration
110 rem copyright 1991 - compute publications intl ltd - all rights reserved
120 rem make sure driver is in memory!
122 if cg=0 then cg=7:load"medden",8,1
130 :
135 pi=3.14159
140 poke 53280,11:poke 53281,11
150 printchr$(147)chr$(5)
160 printtab(11)"lissajous figures"chr$(17)
170 print"press any key after viewing figure"
180 printchr$(17)"enter any two numbers, each"
190 input"with values less than 5";x,y
200 if x>5 or y>5 then 180
210 printchr$(147)
220 fl=1:gosub 260
230 poke 198,0:wait 198,1
240 fl=0:gosub 260
250 end
260 for t=1 to 2*pi*100+(10*pi*(x+y))
270 sys 828,(1+sin(x*t))*40,(1+cos(y*t))*25,fl,c
280 next
290 return