Plots a hypotrochoid, a looping curve like a Spirograph drawing, on the TS1000 or ZX81. Six lines.
RUN it and watch the curve build up over a few minutes; it stops when T reaches 40. Vary the numbers in lines 30 and 40 for other curves. It runs in 1K.
The program is from “Meditations on a Hypotrochoid” by Bradley Rogers in the November/December 1982 issue of Sync. Dave Wood ran it to make the design on the first page of the January 1983 newsletter.
Published in the BCS Sinclair-Timex User Group Newsletter January 1983 (Hypotrochoid, Couldn’t You Tell).
Source Code
10 LET T=0
20 LET T=T+.1
30 LET X=10*COS T+5*COS (4*T+1)
40 LET Y=12*SIN T-8*SIN (6*T)
50 PLOT Y+30,X+20
55 IF T<40 THEN GOTO 20Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
