Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ede781c
fix: `Turtle.Star()` even point fix ( Fixes #190 )
StartAutomating Aug 31, 2025
f5e3bb0
fix: `Turtle.Star()` even point fix ( Fixes #190 )
Aug 31, 2025
e4cd697
feat: `Turtle.StarFlower()` ( Fixes #191 )
StartAutomating Aug 31, 2025
0e98dce
feat: `Turtle.StarFlower()` ( Fixes #191 )
Aug 31, 2025
247a1f0
feat: `Turtle.GoldenFlower()` ( Fixes #193 )
StartAutomating Aug 31, 2025
22876cf
feat: `Turtle.GoldenFlower()` ( Fixes #193 )
Aug 31, 2025
72ebeee
feat: `Turtle.Rectangle()` ( Fixes #192 )
StartAutomating Aug 31, 2025
cc205f8
feat: `Turtle.Rectangle()` ( Fixes #192 )
Aug 31, 2025
a4891a6
feat: `Turtle.Polygon()` partial support ( Fixes #194 )
StartAutomating Aug 31, 2025
d4816c0
feat: `Turtle.Polygon()` partial support ( Fixes #194 )
Aug 31, 2025
773920c
docs: `Turtle.Flower()` partial polygon examples ( re #194 )
StartAutomating Aug 31, 2025
4b29a2f
docs: `Turtle.Flower()` partial polygon examples ( re #194 )
Aug 31, 2025
de9ff20
docs: `Turtle.GoldenFlower()` examples ( re #193 )
StartAutomating Aug 31, 2025
ee0635d
Merge branch 'turtles-in-shape' of https://github.com/PowerShellWeb/T…
StartAutomating Aug 31, 2025
c4245f6
style: `Turtle.Rectangle()` ( Fixes #192 )
StartAutomating Aug 31, 2025
92baf05
style: `Turtle.Rectangle()` ( Fixes #192 )
Aug 31, 2025
5d73096
docs: Intro to Turtles Demo ( Fixes #197 )
StartAutomating Aug 31, 2025
ea07c96
feat: `Turtle.BarGraph()` ( Fixes #173 )
Aug 31, 2025
53dd16b
feat: `Turtle.BarGraph()` ( Fixes #173 )
Aug 31, 2025
7beff38
feat: `Turtle.BarGraph()` ( Fixes #173 )
StartAutomating Aug 31, 2025
d5c6798
feat: `Turtle.BarGraph()` ( Fixes #173 )
Aug 31, 2025
a6bba72
feat: `Turtle.TurtleMonotile` ( Fixes #195 )
Aug 31, 2025
047c394
feat: `Turtle.TurtleMonotile` ( Fixes #195 )
Aug 31, 2025
9d8a6ee
feat: `Turtle.HatMonotile` ( Fixes #196 )
Aug 31, 2025
f150df6
feat: `Turtle.HatMonotile` ( Fixes #196 )
Aug 31, 2025
6944f6f
release: Turtle 0.1.10
StartAutomating Sep 1, 2025
0221564
docs: Adding Star/StarFlower examples to Get-Turtle ( re #190, re #191 )
StartAutomating Sep 1, 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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## Turtle 0.1.10:

* Updated Methods
* `Turtle.Star` even point fix (#190)
* `Turtle.Polygon` partial polygon support (#194)
* New Shapes
* `Turtle.Rectangle` (#192)
* `Turtle.StarFlower` (#191)
* `Turtle.GoldenFlower` (#193)
* `Turtle.HatMonotile` (#196)
* `Turtle.TurtleMonotile` (#195)
* `Turtle.BarGraph` (#173)
* Added Demos
* Intro To Turtles (#197)

---

## Turtle 0.1.9:

* Turtle Text Path Support
Expand Down
48 changes: 48 additions & 0 deletions Commands/Get-Turtle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,54 @@ function Get-Turtle {
$flowerPetals2,
$flowerPetals
)
.EXAMPLE
# We can create a Star with N points
turtle star 42 5

turtle star 42 6

turtle star 42 7

turtle star 42 8
.EXAMPLE
# Stars look spectacular when we rotate and repeat them
turtle @('star',42,5,'rotate',72 * 5)

turtle @('star',42,6,'rotate',60 * 6)

turtle @('star',42,7,'rotate',(360/7) * 7)

turtle @('star',42,8,'rotate',45 * 8)
.EXAMPLE
# When we do this, we call it a Star Flower
turtle StarFlower 42
.EXAMPLE
turtle StarFlower 42 45 8 8
.EXAMPLE
turtle StarFlower 42 45 8 8
.EXAMPLE
# StarFlowers look spectacular when morphed
turtle StarFlower 42 45 8 24 morph @(
turtle StarFlower 42 45 8 24
turtle StarFlower 42 15 8 24
turtle StarFlower 42 45 8 24
)
.EXAMPLE
# We can rotate the points we morph into.
turtle StarFlower 42 45 8 24 morph @(
turtle StarFlower 42 45 8 24
turtle rotate (Get-Random -Max 360) StarFlower 42 15 8 24
turtle StarFlower 42 45 8 24
)
.EXAMPLE
# We can mix the number of points in a star flower morph
#
# (as long as we're drawing the same number of points)
turtle StarFlower 42 12 5 30 morph @(
turtle StarFlower 42 12 5 30
turtle rotate (Get-Random -Max 360) StarFlower 42 14.4 6 25
turtle StarFlower 42 12 5 30
)
.EXAMPLE
# We can construct a 'scissor' by drawing two lines at an angle
turtle Scissor 42 60
Expand Down
37 changes: 37 additions & 0 deletions Demos/Turtle_101-Intro-To-Turtles.demo.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Turtle 101 - Intro to Turtles

# Turtle is a groovy graphics system that dates back to 1966.

# Imagine you are a turtle holding a pen.

# You can:
# * Turn
# * Move Forward
# * Pick up the pen

# Using these fundamental basics, we can theoretically draw any shape.

# Let's start simple, by drawing a line
turtle forward 42 save ./line.svg

# Let's draw a line and take a few turns
turtle forward 42 rotate 120 forward 42 rotate 120 forward 42 rotate 120 stroke '#4488ff' save ./triangle.svg

# Let's make a square
turtle forward 42 rotate 90 forward 42 rotate 90 forward 42 rotate 90 forward 42 rotate 90 stroke '#4488ff' save ./square.svg

# Now let's do it the easier way, with square
turtle square 42 stroke '#4488ff' save ./square2.svg

# Now let's do it the general way, with polygon
turtle polygon 42 4 stroke '#4488ff' save ./square4.svg

# Our turtle is pretty smart, and so it can draw a lot of shapes for us.

# A classic example is a 'flower', which repeats many polygons
turtle flower stroke '#4488ff' save ./flower.svg





24 changes: 15 additions & 9 deletions Turtle.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
# Version number of this module.
ModuleVersion = '0.1.9'
ModuleVersion = '0.1.10'
# Description of the module
Description = "Turtles in a PowerShell"
# Script module or binary module file associated with this manifest.
Expand Down Expand Up @@ -37,15 +37,21 @@
# A URL to the license for this module.
LicenseURI = 'https://github.com/PowerShellWeb/Turtle/blob/main/LICENSE'
ReleaseNotes = @'
## Turtle 0.1.9:

* Turtle Text Path Support
* `Turtle.get/set_Text` controls the text (#167)
* `Turtle.get/set_TextAttribute` sets text attributes (#168)
* `Turtle.get/set_TextAnimation` animates text attributes (#171)
* `Get-Turtle` parameter improvements (#169, #170)
* `Get-Turtle` tracks invocation info (#157)
## Turtle 0.1.10:

* Updated Methods
* `Turtle.Star` even point fix (#190)
* `Turtle.Polygon` partial polygon support (#194)
* New Shapes
* `Turtle.Rectangle` (#192)
* `Turtle.StarFlower` (#191)
* `Turtle.GoldenFlower` (#193)
* `Turtle.HatMonotile` (#196)
* `Turtle.TurtleMonotile` (#195)
* `Turtle.BarGraph` (#173)
* Added Demos
* Intro To Turtles (#197)

---

Additional details available in the [CHANGELOG](https://github.com/PowerShellWeb/Turtle/blob/main/CHANGELOG.md)
Expand Down
Loading
Loading