I remember that and have put a demo of the program here.
http://www.wearmouth.demon.co.uk/gw03/basfill.htm
together with the code.
I think it appeared in Practical Computing and it made a big
impression on me.
I'd love to know the name of the author.
Among the 80s computers, only the Sinclair machines had a GOSUB stack
that could provide this flexibility.
--
Geoff Wearmouth
Matt Westcott used a similar technique not so long ago with this pretty
thing:
10 PLOT 180,60: LET a=12: LET x=2: LET y=2: GO SUB 20: STOP
20 IF a=0 THEN DRAW x,0: RETURN
30 LET a=a-1: GO SUB 20: GO SUB 40: LET a=a+1: RETURN
40 IF a=0 THEN DRAW 0,y: RETURN
50 LET a=a-1: LET y=-y: LET x=-x: GO SUB 20: LET y=-y: LET x=-x: GO SUB 40:
LET a=a+1: RETURN
Eq.