Skip to content

Commit 85defb8

Browse files
docs: Get-Turtle - More Fractal Examples
1 parent d3eb98a commit 85defb8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Commands/Get-Turtle.ps1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,9 +948,22 @@ function Get-Turtle {
948948
.EXAMPLE
949949
# The SierpinskiArrowHead Curve is pretty
950950
turtle SierpinskiArrowheadCurve 42 4
951+
.EXAMPLE
952+
# So is the SierpinskiCurve
953+
turtle SierpinskiCurve 42 4
954+
.EXAMPLE
955+
# The SierpinskiCurveSquare curve fills a from a corner
956+
turtle SierpinskiSquareCurve 42 4
957+
.EXAMPLE
958+
# If we put four of these next to each other
959+
# and turn left, we get a square made of square curves.
960+
turtle @('SierpinskiSquareCurve', -42, 4, 'Rotate', -90 * 4)
961+
.EXAMPLE
962+
# If we turn right instead, we get a diamond with an empty square at the center
963+
turtle @('SierpinskiSquareCurve', -42, 4, 'Rotate', 90 * 4)
951964
.EXAMPLE
952965
# The SierpinskiTriangle is a Fractal classic
953-
turtle SierpinskiTriangle 42 4
966+
turtle SierpinskiTriangle 42 4
954967
.EXAMPLE
955968
# We can morph with no parameters to try to draw step by step
956969
#
@@ -979,6 +992,10 @@ function Get-Turtle {
979992
turtle @('rotate', 30, 'SierpinskiTriangle',42,4 * 12)
980993
.EXAMPLE
981994
turtle @('rotate', 45, 'SierpinskiTriangle',42,4 * 24)
995+
.LINK
996+
https://psturtle.com/Commands/Get-Turtle
997+
.LINK
998+
https://psturtle.com/History/
982999
#>
9831000
[CmdletBinding(PositionalBinding=$false)]
9841001
[Alias('turtle','🐢')]

0 commit comments

Comments
 (0)