A list of all the commands in turtleSpaces and how they work.
A quick tour of Logo and turtleSpaces.
Classic Logo books to get you rolling!
In-depth tutorials describing turtleSpaces syntax and grammar.
- Tutorial #1: Simple Tree - These procedures draw a simple tree in a classic Logo lined style, and a forest of these trees. First, let’s take a look at the tree procedure as a whole. TO tree :scale slideleft 8.25 * :scale forward 20 * :scale repeat 4 [ slideleft (10 * (5 - repcount)) * :scale left 30 slideright […]
Practical examples of turtleSpaces Logo programs.
- Example: Tetris written in turtleSpaces Logo - What do Steve Wozniak and George H.W. Bush have in common? They’ve both been seriously into Tetris! But who can blame them? The object of the game (as if you didn’t know) is to complete horizontal lines using falling shapes of various configurations. When you finish a line, it disappears, causing the rest of the blocks to fall down a line. However, if you stack up shapes to the […]
- Example: Invasion (3D Space Invaders Clone) - Check out this simple space invaders clone, featuring 3D UFO’s and UFO and player movement. This runs well on both the application and in the web version using modest hardware. Rather than using hatchlings each with its own thread (worker), Invasion creates 15 static turtles representing each UFO, then iterates through moving them using the […]
- Random Sine Wave Flowers Made With turtleSpaces Logo - This simple yet attention-grabbing Logo procedure is a real visual treat, creating random three-dimensional ‘flowers’ based on the sine function. This could spice up a math class or just provide a brief introduction to sine waves in general. The procedure makes use of the move primitive, which allows the turtle to move based on an […]
- Simple Hexagon Pattern - Here is a simple Logo project to get started with. It creates a colorful filled hexagon pattern using the polyspot primitive. TO hex clearscreen penup ;not drawing lines repeat 10 [ ;do all of the following ten times setpos [-149 -270] ;sets the 2D turtle position (on the current Z plane) ;you can use setposition […]
- Example: My Gosh, It’s Full of Stars! - Open in turtleSpaces IDERun starscape to create a galaxy of randomly-shaped and colored stars. TO star :radius :points :size :filled ;takes number number number boolean (true or false) ;eg star 10 9 40 false ;or star 20 5 50 true pu dropanchor tether ;pull up the turtle pen, drop the 'anchor' to set the 'anchor […]
- 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. […]
- One-A-Day: Qtips - Today’s example is short but sweet. It creates a design made out of a bunch of qtip-like ‘sticks’ with balls on the ends. It is a design made out of ‘almost squares’ (four sides each at an 85 degree angle to each other). The turtle then turns right 5 degrees, and slides left 20 before […]
- Logo Fireworks - This Logo program uses hatchlings to create simple 2D fireworks. The turtle’s model is changed into an icosphere to simulate a launching firework, and then more hatchlings are used to create the starburst. The trails are merged back into the main turtle ‘track’ and the hatchlings are terminated, leaving the rendered drawing on-screen at the […]
- turtleArt Thumbtack String Corkboard - This commented Logo source code creates a thumbtack, a cork board, and then draws random string art using them. Read the ;comments to learn more about what the primitives do and what their shortcuts are. Try some of the primitives out in turtleSpaces interactive mode (the myrtle prompt) and see what they do! You can […]
- Solar System Simulation - This Solar System simulation features the ability to add orbiting moons to the planets, a few of which are already defined. It is not entirely to scale (the planets are larger than they are in reality). Use the scrollwheel or finger-scroll to zoom in and out, and drag the mouse to rotate around the sun! […]