Posts

Showing posts from June, 2020

Bézier Curve Animations

In a previous post about Trees, I used straight lines and parts of circles to create curves.  Since then, I am learning more about curves and came across Bézier curves.  I liked the animations shown in the Wikipedia link and wondered if I could draw them using Python Turtle. I also wanted to make this interactive where I could pause and resume the animations, add more control points, move them anywhere on the screen, etc.

Polygon Stacks

While searching for interesting patterns with polygons, I came across Spiral Triangle and Spiral Stack by Mike Bostock that I really liked.  I wanted to reproduce these in Python Turtle and see if I can add more variations.  In particular, I wanted to see how these look if we could use different polygons for the inner and outer shapes.

Trees

I learnt about recursion.  There are lots of examples of drawing trees using recursion and Python Turtle.  I wanted to try these and also see if I can do something different that wasn't done before.

Checkerboards

Rectangular I wanted to draw checkerboards in Python Turtle.  To get a filled polygon in Turtle, it has to be drawn entirely in one go as a closed shape.  The common type of checkerboards are rectangular (or square).  These are pretty straightforward to draw.