We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.FractalPlant()
1 parent 2d1cf97 commit 8f67c2cCopy full SHA for 8f67c2c
Turtle.types.ps1xml
@@ -305,6 +305,26 @@ if ($This.IsPenDown) {
305
return $this
306
</Script>
307
</ScriptMethod>
308
+ <ScriptMethod>
309
+ <Name>FractalPlant</Name>
310
+ <Script>
311
+ param(
312
+ [double]$Size = 20,
313
+ [int]$Order = 4,
314
+ [double]$Angle = 25
315
+)
316
+return $this.Rotate(-90).LSystem('-X', [Ordered]@{
317
+ 'X' = 'F+[[X]-X]-F[-FX]+X'
318
+ 'F' = 'FF'
319
+}, $Order, [Ordered]@{
320
+ 'F' = { $this.Forward($Size) }
321
+ '\[' = { $this.Rotate($Angle * -1).Push() }
322
+ '\]' = { $this.Pop().Rotate($Angle) }
323
+})
324
+
325
326
+ </Script>
327
+ </ScriptMethod>
328
<ScriptMethod>
329
<Name>GosperCurve</Name>
330
<Script>
0 commit comments