Skip to content

Commit 90e95d8

Browse files
Merge pull request #222 from PowerShellWeb/turtles-all-the-way-down
Turtle 0.2.0 : Turtles All The Way Down
2 parents 80818c0 + f60d6cc commit 90e95d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1837
-244
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## Turtle 0.2:
2+
3+
### Turtles All The Way Down
4+
5+
A turtle can now contain `.Turtles`
6+
Which can contain `.Turtles`
7+
Which can contain `.Turtles`
8+
Which can contain `.Turtles`...
9+
10+
* Turtles all the way down (#206)
11+
* `Turtle.get/set_Turtles` (#207)
12+
* `Turtle.get_SVG` supports children (#209)
13+
* `Turtle.get_Canvas` rasterization improvement (#210)
14+
* `Turtle.Towards()` multiple targets (#211)
15+
* `Turtle.Distance()` multiple targets (#212)
16+
* `Turtle.Morph` supports stepwise animation (#215)
17+
* Small fixes
18+
* `Turtle.Step()` uses Add (#213)
19+
* `Turtle.set_Steps` initialization fix (#214)
20+
* `Turtle.set_Duration` anytime (#216)
21+
* `Turtle.get_SVG` empty viewbox support (#218)
22+
* `Turtle.get/set_SVGAttribute` (#219)
23+
* `Turtle.get/set_SVGAnimation` (#220)
24+
* `Turtle.get/set_PathTransform` (#217)
25+
* `Turtle.Forward()` removing rounding (#221)
26+
27+
---
28+
129
## Turtle 0.1.10:
230

331
* Updated Methods

Commands/Get-Turtle.ps1

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,23 @@ function Get-Turtle {
333333
.EXAMPLE
334334
turtle spirolateral 23 144 8
335335
.EXAMPLE
336-
turtle spirolateral 23 72 8
336+
turtle spirolateral 23 72 8
337+
.EXAMPLE
338+
# Lets get practical. Turtle can easily make a bar graph.
339+
turtle BarGraph 200 300 (1..10)
340+
.EXAMPLE
341+
# Want a vertical bar graph? Rotate first.
342+
turtle rotate 90 BarGraph 200 300 (1..10)
343+
.EXAMPLE
344+
# Let's provide more random points:
345+
turtle rotate 90 BarGraph 200 300 (1..20 | Get-Random -Count 20)
346+
.EXAMPLE
347+
# We can draw pretty pictures by connecting and rotating graphs
348+
turtle @(
349+
'BarGraph', 200, 300, (1..10),
350+
'BarGraph', 200, 300, (10..1),
351+
'rotate',180 * 2
352+
)
337353
.EXAMPLE
338354
# Turtle can draw a number of fractals
339355
turtle BoxFractal 42 4
@@ -370,6 +386,9 @@ function Get-Turtle {
370386
.EXAMPLE
371387
# We can use a Moore Curve to fill a space with a bit more density.
372388
turtle MooreCurve 42 4
389+
.EXAMPLE
390+
# We can rotate and repeat moore curves, giving us even Moore.
391+
turtle @('MooreCurve', 42, 4, 'Rotate', 90 * 4)
373392
.EXAMPLE
374393
# We can show a binary tree
375394
turtle BinaryTree 42 4
@@ -382,6 +401,9 @@ function Get-Turtle {
382401
.EXAMPLE
383402
# The SierpinskiTriangle is a Fractal classic
384403
turtle SierpinskiTriangle 42 4
404+
.EXAMPLE
405+
# We can morph a SierpinskiTriangle to show it step by step
406+
turtle SierpinskiTriangle 42 4 morph
385407
.EXAMPLE
386408
# Let's draw two reflected Sierpinski Triangles
387409
turtle @(

Examples/BoxFractal.png

-1.49 KB
Loading

Examples/BoxFractal.svg

Lines changed: 4 additions & 2 deletions
Loading

Examples/EndlessBoxFractal.svg

Lines changed: 1 addition & 1 deletion
Loading

Examples/EndlessHilbert.svg

Lines changed: 1 addition & 1 deletion
Loading

Examples/EndlessScissorPoly.svg

Lines changed: 1 addition & 1 deletion
Loading

Examples/EndlessSierpinskiTrianglePattern.svg

Lines changed: 1 addition & 1 deletion
Loading

Examples/EndlessSnowflake.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)