Witches, pumpkins, devils, ghosts and black cats are all haunting turtleSpaces this Hallowe’en! turtleSpaces is great for creating 3D models using code.

You can also find these models in the Published projects section of the webLogo interpreter.

The Pumpkin:

The pumpkin is created using the spheroidslice primitive, which creates an elongated slice of a sphere. By creating ten of these slices (every 36 degrees) we can easily create the pumpkin’s body:

Next, we’ll position the turtle and use the domoid primitive to create the eyes, nose and mouth:

Finally, we’ll create the pumpkins stem:

The Witch:

The witch procedure first stores the pumpkin as a turtle model, then begins with her signature feature: her hat!

First we position the camera and store the pumpkin as a turtle model:

Then we create her hat:

Next is her head:

Then her body:

And finally her broom!

The Devil:

This unicycling devil robot is a scary creature!

His head is made out of a padded voxel:

And his body:

The Ghosts:

These bug-eyed PacMan-style ghosts are a real scream!

The Ghost:

The Ghost Circle (this code assumes the above code is in a procedure called ghost:)

The Cats:

Don’t get in the way of these cats, or it’s bad luck!

The Cat’s Eye:

The Cat:

The Cat Ring:

Happy Hallowe’en!