@@ -19,8 +17,15 @@ param()
+'@
+)
+
+#region Introduction
+@"
+# Turtle
+$imageHeader
## Turtles in a PowerShell
@@ -123,6 +128,9 @@ The turtle is represented as an object, and any number of commands can make or m
Last but not least: `Get-Turtle` lets you run multiple steps of turtle, and is aliased to `turtle`.
+Get-Turtle is the command we will use most often, and we will almost always just call it by the alias `turtle`.
+
+If you want to get a sense of all that Turtle can do, check out the [Get-Turtle examples](https://psturtle.com/Commands/Get-Turtle)
"@
@"
@@ -143,15 +151,10 @@ Let's start simple, by drawing a square with a series of commands.
~~~PowerShell
$(
$drawSquare1 = {
-New-Turtle |
- Move-Turtle Forward 10 |
- Move-Turtle Rotate 90 |
- Move-Turtle Forward 10 |
- Move-Turtle Rotate 90 |
- Move-Turtle Forward 10 |
- Move-Turtle Rotate 90 |
- Move-Turtle Forward 10 |
- Move-Turtle Rotate 90 |
+turtle Forward 10 Rotate 90 |
+ turtle Forward 10 Rotate 90 |
+ turtle Forward 10 Rotate 90 |
+ turtle Forward 10 Rotate 90 |
Save-Turtle "./Square.svg"
}
$drawSquare1
@@ -296,7 +299,7 @@ $box3 = {
### Drawing Fractals
-Turtle is often used to draw fractals.
+Turtle is can be used to draw fractals.
Many fractals can be described in something called a [L-System](https://en.wikipedia.org/wiki/L-system) (short for Lindenmayer system)
@@ -371,7 +374,7 @@ $SnowFlakePattern = . $MakeSnowflakePattern
@"