Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a1cb81b
feat: `Turtle.Step()` ( Fixes #161 )
StartAutomating Aug 26, 2025
30fd7d8
feat: `Turtle.Step()` ( Fixes #161 )
Aug 26, 2025
659c0ed
feat: `Turtle.Step()` ( Fixes #161 )
StartAutomating Aug 26, 2025
2dd9d10
feat: `Turtle.Step()` ( Fixes #161 )
StartAutomating Aug 26, 2025
3e1b98a
feat: `Turtle.Step()` ( Fixes #161 )
Aug 26, 2025
280f822
feat: `Turtle.Step()` ( Fixes #161 )
StartAutomating Aug 26, 2025
480e8de
feat: `Turtle.Step()` ( Fixes #161 )
Aug 26, 2025
8b8fe19
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
StartAutomating Aug 26, 2025
37815ee
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
b772491
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
3799f58
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
1765c87
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
56a2f0e
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
1e671c2
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
534f019
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
7ecc5b4
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
a0654c2
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
dd66872
feat: `Turtle.get/set_Steps` performance ( Fixes #159 )
Aug 26, 2025
1ea81ec
feat: Reducing Turtle Verbosity ( Fixes #160 )
StartAutomating Aug 26, 2025
d1f674d
feat: Reducing Turtle Verbosity ( Fixes #160 )
Aug 26, 2025
5c80058
feat: Turtle Reflection Examples ( Fixes #162 )
StartAutomating Aug 26, 2025
71f71a9
release: Turtle 0.1.8
StartAutomating Aug 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## Turtle 0.1.8:

* Turtle Performance
* Improving `.Steps` performance (#159)
* Reducing Turtle Verbosity (#160)
* New Moves:
* Step (#161)
* Forward,Teleport, and GoTo now use Step (#161)
* New Reflection Examples (#162)

---

## Turtle 0.1.7:

* Morphing Turtles
Expand Down
27 changes: 24 additions & 3 deletions Commands/Get-Turtle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ function Get-Turtle {
.EXAMPLE
# Let's make a triangle by multiplying steps
turtle ('forward', 10, 'rotate', 120 * 3)
.EXAMPLE
# We can also write this with a polygon
turtle polygon 10 3
.EXAMPLE
# Let's make a series of polygons, decreasing in size
turtle polygon 10 6 polygon 10 5 polygon 10 4
Expand All @@ -87,6 +90,12 @@ function Get-Turtle {
$sideCount
}
)
.EXAMPLE
# We can reflect a shape by drawing it with a negative number
turtle polygon 42 3 polygon -42 3
.EXAMPLE
# We can change the angle of reflection by rotating first
turtle rotate 60 polygon 42 3 polygon -42 3
.EXAMPLE
# We can morph any N shapes with the same number of points.
turtle square 42 morph @(
Expand All @@ -95,14 +104,23 @@ function Get-Turtle {
turtle square 42
)
.EXAMPLE
# This animates the path of the turtle.
# Reflections always have the same number of points.
#
# Morphing a shape into its reflection will zoom out, flip, and zoom back in.
turtle polygon 42 6 morph @(
turtle polygon -42 6
turtle polygon 42 6
turtle polygon -42 6
)
.EXAMPLE
# If we want to morph a smaller shape into a bigger shape,
# we can duplicate more lines
#
# we can duplicate lines
turtle polygon 21 6 morph @(
turtle @('forward', 21,'backward', 21 * 3)
turtle polygon 21 6
turtle @('forward', 21,'backward', 21 * 3)
)
)
.EXAMPLE
# We can repeat steps by multiplying arrays.
# Lets repeat a hexagon three times with a rotation
Expand Down Expand Up @@ -304,6 +322,9 @@ function Get-Turtle {
.EXAMPLE
# The SierpinskiTriangle is a Fractal classic
turtle SierpinskiTriangle 42 4
.EXAMPLE
# Let's draw two reflected Sierpinski Triangles
turtle rotate 60 SierpinskiTriangle 42 4 SierpinskiTriangle -42 4
.EXAMPLE
# We can draw a 'Sierpinski Snowflake' with multiple Sierpinski Triangles.
turtle @('rotate', 30, 'SierpinskiTriangle',42,4 * 12)
Expand Down
2 changes: 1 addition & 1 deletion Examples/BoxFractal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Examples/EndlessBoxFractal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Examples/EndlessHilbert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Examples/EndlessScissorPoly.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading