Skip to content

Commit 92baf05

Browse files
StartAutomatingStartAutomating
authored andcommitted
style: Turtle.Rectangle() ( Fixes #192 )
Spreading out method chain.
1 parent c4245f6 commit 92baf05

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Turtle.types.ps1xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,11 @@ return $this.Rotate(-90).LSystem('-X', [Ordered]@{
599599
.EXAMPLE
600600
Turtle GoldenFlower
601601
.EXAMPLE
602-
Turtle StarFlower 42 20 10
602+
Turtle GoldenFlower 42 10 36
603603
.EXAMPLE
604-
Turtle StarFlower 42 40 13 9
604+
Turtle GoldenFlower 42 5 72
605605
.EXAMPLE
606-
Turtle StarFlower 84 40 6 9 | Save-Turtle ./StarFlowerPattern.svg Pattern
606+
Turtle GoldenFlower 84 30 12 | Save-Turtle ./GoldenFlowerPattern.svg Pattern
607607
#>
608608
param(
609609
# The width of each rectangle
@@ -1510,7 +1510,11 @@ if (-not $Height) {
15101510
$Height = $width/((1 + [Math]::Sqrt(5))/2)
15111511
}
15121512

1513-
$this.Forward($width).Rotate(90).Forward($Height).Rotate(90).Forward($Width).Rotate(90).Forward($height).Rotate(90)
1513+
$this.
1514+
Forward($width).Rotate(90).
1515+
Forward($Height).Rotate(90).
1516+
Forward($Width).Rotate(90).
1517+
Forward($height).Rotate(90)
15141518
</Script>
15151519
</ScriptMethod>
15161520
<ScriptMethod>

0 commit comments

Comments
 (0)