Turtle Letters: 04

Planning your letters inside a bounding box (planning P and C)

Part of a series of tutorial articles about drawing symbols with turtle graphics.

For each letter that you and your pair partner are going to draw, start by drawing a bounding box like this on on a piece of paper.


For example, consider my name: “Phill Conrad”. I might plan out bounding boxes like these. Here, I’ve chosen each of the important points, and labelled them. Note, though, that these are only examples. I don’t expect that everyone with a P or a C in their name will make the same choices about how to shape the letters. In fact, I hope each of you will make slightly different choices.

BoundingBoxP1.png BoundingBoxC1.png

For instance, as an alternative, I might use bounding boxes like these:

BoundingBoxP2.png BoundingBoxC2.png

Or even these, if I get ambitious, and want to try to make rounded shapes using the turtle’s circle function (note: that’s a link to the documentation!)

BoundingBoxP3.png BoundingBoxC3.png

A warning about that last approach: although it may seem like it isn’t that tough, there are some subtle traps. For example, in the C, what if we are drawing a short, fat C where height > width? Then h-w will be negative, and there may be “issues”. You might find that you would need more than one drawing, one for when (h-w)>0, and a different approach when (h-w)<0, and then use an if/else statement in your drawing code. It might be better to stick to approaches that don’t involve interaction between height and width, which probably means straight lines. If you and your partner are up for the challenge of using curves and circles, you are welcome to try, but I advocate trying the straight line approach FIRST just to be safe.

Once you’ve planned your letters on paper, you are ready to start coding.