1020 Plotter demos (PLOTTER2.BAS)

1020 Plotter demos by Kris Cruz

Description

1020 Plotter demos by Kris Cruz

From the Antic disk of February 1986 (Vol. 4 No. 10) — disk A.

The magazine article

From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.

What is in this file

Atari BASIC program · 742 bytes

Dialect
Atari BASIC
Lines
18
Variables
C, C(, P, Z, SD, SD(
BASIC listing (18 lines)
2 REM 1020 PLOTTER, LISTING 2
3 REM BY KRIS CRUZ
4 REM (c) 1985, ANTIC PUBLISHING
10 CLOSE #2:OPEN #2,8,0,"P:":C=0:REM OPEN IOCB CHANNEL #2 TO PLOTTER
20 DIM C(1),SD(1):DEG :REM CALCULATE ANGLES IN DEGREES
28 ? #2;"␛╲"
29 SD=150:GOSUB 30:SD=325:GOSUB 30:GOTO 90
30 ? #2;"M";SD+50*COS(0);",";50*SIN(0)
40 FOR P=1 TO 130 STEP 5
45 ? #2;"M";SD+(P+1)*COS(Z);",";(P+1)*SIN(Z):DEG
50 FOR Z=0 TO 360 STEP 5
60 ? #2;"D";SD+P*COS(Z);",";P*SIN(Z)
70 NEXT Z
75 RAD :? #2;"M";SD+(P+1)*COS(Z);",";(P+1)*SIN(Z):DEG
80 NEXT P
85 RETURN
90 PRINT #2;"H"
100 CLOSE #2