1020 Plotter demos (PLOTTER4.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 · 1.0 KB

Dialect
Atari BASIC
Lines
22
Variables
R1(, R2(, P(, R1, R2, THETA, P
BASIC listing (22 lines)
10 REM 1020 PLOTTER CUBE, LISTING 4
20 REM BY KRIS CRUZ
30 REM (c) 1985, ANTIC PUBLISHING
50 CLOSE #2:OPEN #2,8,0,"P:":PRINT #2;"␛╲":REM OPEN 1020 FOR GRAPHICS MODE
60 DEG :REM SET ANGLES IN DEGREES
70 DIM R1(1),R2(1),P(1):R1=80:R2=80:REM THESE VALUSE DETERMINE SIZE OF BOXES 1&2
80 PRINT #2;"M";100+R1*COS(45);",";100+R1*SIN(45)
90 FOR THETA=45 TO 405 STEP 90:REM 360 DEGREES WITH ROTATED BOXES
100 PRINT #2;"D";100+R1*COS(THETA);",";100+R1*SIN(THETA)
110 NEXT THETA
120 PRINT #2;"M";150+R2*COS(45);",";200+R2*SIN(45):REM LIFT PEN AND MOVE FOR NEXT BOX
130 FOR THETA=45 TO 405 STEP 90
140 PRINT #2;"D";150+R2*COS(THETA);",";200+R2*SIN(THETA)
150 NEXT THETA
160 READ P:IF P=0 THEN GOTO 500
170 PRINT #2;"M";100+R1*COS(P);",";100+R1*SIN(P)
180 PRINT #2;"D";150+R2*COS(P);",";200+R2*SIN(P)
190 GOTO 160
500 PRINT #2;"H":REM SEND PEN TO HOME POSITION
510 CLOSE #2
520 END
600 DATA 45,135,225,315,0