Harriss Spiral with Turtle Graphics

I have been working on a Turtle Graphics library (see this discussion).

I was asked if the library could draw a Harriss Spiral and I was not sure but after some effort I managed it.

Hope you like it :sunglasses:

4 Likes

Congratulations, it’s beautiful work and validates your library.

1 Like

I have been experimenting with the Harriss spiral sketch by changing some of the variables to discover how they affect the spiral and get a greater understanding of the mathematical basis for it.

Anyway I have this sketch where the turtle has to perform over 44,000 tasks to produce the final graphic.

4 Likes

Man that is one busy turtle. You may be the first programmer to ever do that; I’ve never seen it before. Nice work, and the library hangs in there for the whole thing.

1 Like

Can’t accept that accolade it was in the Harriss Spiral link - the Harriss Hairy Spiral code. I have simply changed the minimum larac radius from 5 to 2.5 whcih lengthens the smaller spirals.

2 Likes

I always encourage others to experiment so perhaps I should take my own advice and some ideas came to me.

The original Harriss spiral, as shown in my first post is created from a series of 90° circular arcs of reducing radius connected at their ends. You can see this as TG builds up the spiral. My first thought was what would happen if the arcs were elliptical rather than circular. This image was created using an ellipse with 0.2 eccentricity (ratio of small to large axis lengths).


I thought I might just get a squashed version but I rather like the rounded rectangle look.

My second experiment uses the circular arc but I have increased the arc length from 90° to 120°

Of course I could combine these or try them out with the ‘hairy’ Harriss spiral (my second post above).

Didn’t realise the Harriss spiral could be so much fun playing with. :grinning:

2 Likes