--- title: "Line Draw" type: "article" slug: "line-draw" url: "http://localhost/article/line-draw/" markdown_url: "http://localhost/article/line-draw.md" published_at: "2026-11-21T22:03:29+00:00" modified_at: "2026-11-22T19:36:04+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "1230 REM DRAWN LINES FROM POINT ON CIRCUMFERENCE TO OTHER POINTS ON CIRCUMFERENCE 1235 LET C=0 1240 DIM X(20): DIM Y(20) 1245 LET C=C+1 1250 LET N=INT (RND*6)+8 1255 LET P=2*PI/N 1257 INPUT \"DISTANCE X''DISTANCE Y FROM CENTER CO-ORD\";E;\" \";F 1260 FOR I=1 TO N 1265 LET Z=P*I 1270 LET X(I)=INT (COS Z*E+127) 1275 LET…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Patrick Fagan" slug: "patrick-fagan" taxonomy: "indiv" url: "http://localhost/indiv/patrick-fagan/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" publication_r: id: 38992 title: "LISTing Newsletter" type: "periodical" url: "http://localhost/periodical/listing-newsletter/" authors: "P. Fagan" issues_articles: - id: 78308 title: "LISTing Newsletter May – June 1985" type: "issue" url: "http://localhost/issue/listing-newsletter-may-june-1985/" pages: "3" pubdate: "May - June 1985" archive_link: false article_media: - id: 79560 title: "Line Draw" type: "computer_media" url: "http://localhost/computer_media/line-draw/" --- # Line Draw ``` 1230 REM DRAWN LINES FROM POINT ON CIRCUMFERENCE TO OTHER POINTS ON CIRCUMFERENCE 1235 LET C=0 1240 DIM X(20): DIM Y(20) 1245 LET C=C+1 1250 LET N=INT (RND*6)+8 1255 LET P=2*PI/N 1257 INPUT "DISTANCE X''DISTANCE Y FROM CENTER CO-ORD";E;" ";F 1260 FOR I=1 TO N 1265 LET Z=P*I 1270 LET X(I)=INT (COS Z*E+127) 1275 LET Y(I)=INT (SIN Z*F+85) 1280 NEXT I 1285 FOR I=1 TO N 1290 PLOT X(I),Y(I) 1295 NEXT I 1297 INK 9 1300 FOR w=n TO 1 STEP -1 1305 FOR i=1 TO n 1310 PLOT x(w),y(w) 1315 DRAW INT x(i)-x(w),INT y(i)-y(w) 1320 NEXT i: NEXT w 1325 IF C=5 THEN STOP 1330 GO TO 1240 1650 REM DRAW MULTI SIDED FIGURES 1655 LET A=0 1660 DIM x(30): DIM y(30) 1665 INPUT "# OF POLYGON SIDES ";SD 1670 INPUT "# OF POLYGONS?";SI 1675 LET tp=2*PI: LET g=0: LET SP=tp/sd: LET q=127: LET r=87 1677 INPUT "DISTANCE X''DISTANCE Y FROM CENTER CO-ORD";E;" ";F 1678 INPUT "AMOUNT OF ROTATION? ";B 1680 FOR t=0 TO SI-1 1685 LET g=B 1695 FOR n=1 TO sd 1700 LET z=sp*n+g 1705 LET x(n)=INT (SIN z*E+q) 1710 LET y(n)= INT (COS z*F+r) 1715 NEXT n 1720 LET n=sd-1 1725 FOR s=sd TO 1 STEP -1 1730 PLOT x(n),y(n): DRAW x(s)-x(n),y(s)-y(n) 1735 LET n=n-1 1740 IF n=0 THEN LET n=sd 1745 NEXT s: LET q=q-3: LET r=r-3: NEXT t: LET A=A+1 1755 IF A=3 THEN STOP 1760 GO TO 1660 ``` *Transcription note: Lines 1678 and 1685 are corrected from the printed page, which has B where our transcription had E and 8.* *Handwritten beside line 1685: “- ALSO – LET q=q+8”* [![Line drawing from points on a circumference](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-1.png)](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-1.png)Line drawing from points on a circumference [![Rotated multi-sided figures](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-2.png)](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-2.png)Rotated multi-sided figures [![Swordsman in a corridor screen](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-3.png)](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-3.png)Swordsman in a corridor screen [![Screen from GUARDIAN:](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-4-922x1024.png)](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-4.png)Screen from GUARDIAN: [![Spaceship, planet and moon screen](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-5-1024x752.png)](http://localhost/wp-content/uploads/2026/11/listing-new-1985-05-06-line-draw-5.png)Spaceship, planet and moon screen ## Source Code: Line Draw ``` 1230 REM DRAWN LINES FROM POINT ON CIRCUMFERENCE TO OTHER POINTS ON CIRCUMFERENCE 1235 LET C=0 1240 DIM X(20): DIM Y(20) 1245 LET C=C+1 1250 LET N=INT (RND*6)+8 1255 LET P=2*PI/N 1257 INPUT "DISTANCE X''DISTANCE Y FROM CENTER CO-ORD";E;" ";F 1260 FOR I=1 TO N 1265 LET Z=P*I 1270 LET X(I)=INT (COS Z*E+127) 1275 LET Y(I)=INT (SIN Z*F+85) 1280 NEXT I 1285 FOR I=1 TO N 1290 PLOT X(I),Y(I) 1295 NEXT I 1297 INK 9 1300 FOR w=n TO 1 STEP -1 1305 FOR i=1 TO n 1310 PLOT x(w),y(w) 1315 DRAW INT x(i)-x(w),INT y(i)-y(w) 1320 NEXT i: NEXT w 1325 IF C=5 THEN STOP 1330 GO TO 1240 1650 REM DRAW MULTI SIDED FIGURES 1655 LET A=0 1660 DIM x(30): DIM y(30) 1665 INPUT "# OF POLYGON SIDES ";SD 1670 INPUT "# OF POLYGONS?";SI 1675 LET tp=2*PI: LET g=0: LET SP=tp/sd: LET q=127: LET r=87 1677 INPUT "DISTANCE X''DISTANCE Y FROM CENTER CO-ORD";E;" ";F 1678 INPUT "AMOUNT OF ROTATION? ";B 1680 FOR t=0 TO SI-1 1685 LET g=B 1695 FOR n=1 TO sd 1700 LET z=sp*n+g 1705 LET x(n)=INT (SIN z*E+q) 1710 LET y(n)= INT (COS z*F+r) 1715 NEXT n 1720 LET n=sd-1 1725 FOR s=sd TO 1 STEP -1 1730 PLOT x(n),y(n): DRAW x(s)-x(n),y(s)-y(n) 1735 LET n=n-1 1740 IF n=0 THEN LET n=sd 1745 NEXT s: LET q=q-3: LET r=r-3: NEXT t: LET A=A+1 1755 IF A=3 THEN STOP 1760 GO TO 1660 ```