Logo-Coding

Introducing Spaces

Spaces contain subsets of the broader turtleSpaces primitive (keyword) set dedicated to various types of creation. They also have restricted feature sets, to enable gradual exposure to everything turtleSpaces has to offer.

You can select a Space from the menu provided by clicking on the name of the current Space (eg omniSpace) in the top-left corner of the web IDE, or by clicking on the link in the following list:

Read More »

Example: It’s Turtles All The Way Down!

In turtleSpaces, you can ‘stamp’ the current model, leaving a copy of it in the current position. This can be useful in some circumstances, to create artworks made out of more sophisticated models. In the case of this example, we’re going to use the default ‘myrtle’ turtle model to create a descending spiral of turtles.

If you change the colors in the default palette using the definecolor primitive, then those colors are also used to render the turtle model, and by extension the stamp. And so, if we ‘cycle’ the colors, shifting their RGB values from one palette slot to the next, we can create a rotating series of differently-colored turtles.

Read More »

Example: Sierpinski’s Turtles

Sierpinski’s Gasket

These routines use recursion (they repeatedly call themselves) to realise different Sierpinski algorithms. Logo’s recursion capabilities and relational turtle make it excellent for the task of rendering these algorithms! They’re also very pretty.

Read More »