|
| 1 | +## Turtle 0.1.1: |
| 2 | + |
| 3 | +* Updates: |
| 4 | + * `Turtle.get/set_ID` allows for turtle identifiers |
| 5 | + * `Turtle.ToString()` stringifies the SVG |
| 6 | +* Fixes: |
| 7 | + * Fixing GoTo/Teleport (#90) |
| 8 | + * Fixing Position default (#85) (thanks @ninmonkey !) |
| 9 | + * Fixing Turtle Action ID (#89) |
| 10 | +* New: |
| 11 | + * `Turtle.Push()` pushes position/heading to a stack (#91) |
| 12 | + * `Turtle.Pop()` pops position/heading from a stack (#92) |
| 13 | + * `Turtle.get_Stack` gets the position stack (#93) |
| 14 | +* New Fractals: |
| 15 | + * `BinaryTree()` (#94) |
| 16 | + * `FractalPlant()` (#95) |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## Turtle 0.1: |
| 21 | + |
| 22 | +* Initial Release |
| 23 | +* Builds a Turtle Graphics engine in PowerShell |
| 24 | +* Core commands |
| 25 | + * `Get-Turtle` (alias `turtle`) runs multiple moves |
| 26 | + * `New-Turtle` create a turtle |
| 27 | + * `Move-Turtle` performas a single move |
| 28 | + * `Set-Turtle` changes a turtle |
| 29 | + * `Save-Turtle` saves a turtle |
| 30 | + |
| 31 | +~~~PowerShell |
| 32 | +turtle Forward 10 Rotate 120 Forward 10 Roate 120 Forward 10 Rotate 120 | |
| 33 | + Set-Turtle Stroke '#4488ff' | |
| 34 | + Save-Turtle ./Triangle.svg |
| 35 | +~~~ |
| 36 | + |
| 37 | +* Core Object |
| 38 | + * `.Heading` controls the turtle heading |
| 39 | + * `.Steps` stores a list of moves as an SVG path |
| 40 | + * `.IsPenDown` controls the pen |
| 41 | + * `.Forward()` moves forward at heading |
| 42 | + * `.Rotate()` rotates the heading |
| 43 | + * `.Square()` draws a square |
| 44 | + * `.Polygon()` draws a polygon |
| 45 | + * `.Circle()` draws a circle (or partial circle) |
| 46 | +* LSystems |
| 47 | + * Turtle can draw a L system. Several are included: |
| 48 | + * `BoxFractal` |
| 49 | + * `GosperCurve` |
| 50 | + * `HilbertCurve` |
| 51 | + * `KochCurve` |
| 52 | + * `KochIsland` |
| 53 | + * `KochSnowflake` |
| 54 | + * `MooreCurve` |
| 55 | + * `PeanoCurve` |
| 56 | + * `SierpinskiTriangle` |
| 57 | + * `SierpinskiCurve` |
| 58 | + * `SierpinskiSquareCurve` |
| 59 | + * `SierpinskiArrowheadCurve` |
| 60 | + * `TerdragonCurve` |
| 61 | + * `TwinDragonCurve` |
| 62 | + |
| 63 | +~~~PowerShell |
| 64 | +turtle SierpinskiTriangle 10 4 | |
| 65 | + Set-Turtle Stroke '#4488ff' | |
| 66 | + Save-Turtle ./SierpinskiTriangle.svg |
| 67 | +~~~ |
| 68 | + |
0 commit comments