2068 Spirograph

See all articles from T-S Horizons n9
Publication: T-S Horizons
Pub Details: T-S Horizons n9 (Issue 9)
Date: Oct/Nov 1984
Pages: 16

The following note accompanied this month’s tape from T.S. Services (formerly known as T.S.T.I.S. – See T.S. News section for more details).

“Here is a cute routine to show your friends PLOT 68,28:DRAW 100,100,4100.”

At first glance you might expect that this program would not work because of the large third number in the DRAW Statement. But if you try it you’ll find that it does more than draw an arc, as the DRAW command is intended to do. It very quickly draws a pattern of lines and produces the following figure. (1) It is circular on your TV screen but the 2040 printer elongates it somewhat.

Fig. 1. Pattern from DRAW 100,100,4100
Fig. 1. Pattern from DRAW 100,100,4100

Numbers other than 4100 will work in the DRAW command, but about 80% of the numbers we tried returned an error message. Some of the more interesting patterns for the numbers from 4100 to 4200 are pictured below. (Fig 2. This and the following figures are reduced).

Even fractional numbers produce their own unique designs. For example 3936.4 to 3937.6. (Fig. 3)

There doesn’t seem to be a limit to how large a number can be used, either. (Fig. 4)

5 LET A=4099
10 PLOT 68,28:DRAW 100,100,A
Figs. 2-4. Spirograph patterns for LET A=4099 to 5999999 (part 1)
Figs. 2-4. Spirograph patterns for LET A=4099 to 5999999 (part 1)
Figs. 2-4. Spirograph patterns for LET A=4099 to 5999999 (part 2)
Figs. 2-4. Spirograph patterns for LET A=4099 to 5999999 (part 2)

Other ways to modify the design are to change the starting point (PLOT parameters) or increase or decrease the diameter (the first two DRAW parameters). For some of the patterns printed here, these parameters had to be changed to keep the picture on the screen.

Perhaps eventually some mathematician or machine code programmer can determine a formula to find the numbers that give good results. In the meantime, the rest of us can just use it to impress our friends and in graphics programs.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.