Skip to content

Conversation

@StartAutomating
Copy link
Member

Turtles in a PowerShell

  • 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
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
turtle SierpinskiTriangle 10 4 |
    Set-Turtle Stroke '#4488ff' |
    Save-Turtle ./SierpinskiTriangle.svg    

James Brundage and others added 30 commits July 23, 2025 16:37
Avoiding multiple returns
Avoiding multiple returns
The get_Points property had not been handling E notation
The get_Points property had not been handling E notation
James Brundage and others added 28 commits July 29, 2025 04:59
Checking in README.md source
Checking in README.md source
Changing default order of magnitude
Changing default order of magnitude
Copying dictionary into new empty dictionary to avoid modification
Copying dictionary into new empty dictionary to avoid modification
Now with command reference and more examples.
Now with command reference and more examples.
Adding more sections
Adding more sections
Adding description and release notes.
@StartAutomating StartAutomating merged commit a845bda into main Jul 29, 2025
6 checks passed
@StartAutomating StartAutomating deleted the new-turtle branch July 29, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants