Turtle

0.1.1

Turtles in a PowerShell

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Turtle

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Turtle

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

2025 Start-Automating

Package Details

Author(s)

  • James Brundage

Tags

PowerShell Turtle SVG Graphics Drawing L-System Fractal

Dependencies

This module has no dependencies.

Release Notes

## Turtle 0.1.1:

* Updates:
 * `Turtle.get/set_ID` allows for turtle identifiers
 * `Turtle.ToString()` stringifies the SVG  
* Fixes:
 * Fixing GoTo/Teleport (#90)
 * Fixing Position default (#85) (thanks @ninmonkey !)
 * Fixing Turtle Action ID (#89)
* New:
 * `Turtle.Push()` pushes position/heading to a stack (#91)
 * `Turtle.Pop()` pops position/heading from a stack (#92)
 * `Turtle.get_Stack` gets the position stack (#93)
* New Fractals:
 * `BinaryTree()` (#94)
 * `FractalPlant()` (#95)

---

## Turtle 0.1:

* Initial Release
* Builds a Turtle Graphics engine in PowerShell
* Core commands
 * `Get-Turtle` (alias `turtle`) runs multiple moves
 * `New-Turtle` create a turtle
 * `Move-Turtle` performas a single move
 * `Set-Turtle` changes a turtle
 * `Save-Turtle` saves a turtle

~~~PowerShell
turtle Forward 10 Rotate 120 Forward 10 Roate 120 Forward 10 Rotate 120 |
   Set-Turtle Stroke '#4488ff' |
   Save-Turtle ./Triangle.svg
~~~

* Core Object
 * `.Heading` controls the turtle heading
 * `.Steps` stores a list of moves as an SVG path
 * `.IsPenDown` controls the pen
 * `.Forward()` moves forward at heading
 * `.Rotate()` rotates the heading
 * `.Square()` draws a square
 * `.Polygon()` draws a polygon
 * `.Circle()` draws a circle (or partial circle)
* LSystems
 * Turtle can draw a L system.  Several are included:
   * `BoxFractal`
   * `GosperCurve`
   * `HilbertCurve`
   * `KochCurve`
   * `KochIsland`
   * `KochSnowflake`
   * `MooreCurve`
   * `PeanoCurve`
   * `SierpinskiTriangle`
   * `SierpinskiCurve`
   * `SierpinskiSquareCurve`
   * `SierpinskiArrowheadCurve`
   * `TerdragonCurve`
   * `TwinDragonCurve`
      
~~~PowerShell
turtle SierpinskiTriangle 10 4 |
   Set-Turtle Stroke '#4488ff' |
   Save-Turtle ./SierpinskiTriangle.svg    
~~~

FileList

Version History

Version Downloads Last updated
0.1.1 (current version) 100 7/30/2025
0.1 38 7/29/2025