Skip to content

Commit fdd4c27

Browse files
docs: Adding EndlessBoxFractal example
1 parent e350f1d commit fdd4c27

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Push-Location $PSScriptRoot
2+
$turtle = turtle BoxFractal 20 4 |
3+
set-turtle -property Fill -value '#4488ff' |
4+
set-turtle -property backgroundColor '#224488' |
5+
Set-Turtle -Property PatternTransform @{scale=0.5} |
6+
Set-Turtle -Property PatternAnimation -Value "
7+
8+
<animateTransform attributeName='patternTransform' attributeType='XML' type='scale' values='0.66;0.33;0.66' dur='19s' repeatCount='indefinite' additive='sum' />
9+
10+
<animateTransform attributeName='patternTransform' attributeType='XML' type='rotate' from='0' to='360' dur='29s' repeatCount='indefinite' additive='sum' />
11+
12+
<animateTransform attributeName='patternTransform' attributeType='XML' type='skewX' values='30;-30;30' dur='67s' repeatCount='indefinite' additive='sum' />
13+
14+
<animateTransform attributeName='patternTransform' attributeType='XML' type='skewY' values='30;-30;30' dur='83s' repeatCount='indefinite' additive='sum' />
15+
16+
<animateTransform attributeName='patternTransform' attributeType='XML' type='translate' values='0 0;42 42;0 0' dur='103s' repeatCount='indefinite' additive='sum' />
17+
18+
"
19+
20+
21+
22+
23+
$turtle | save-turtle -Path ./EndlessBoxFractal.svg -Property Pattern
24+
Pop-Location

0 commit comments

Comments
 (0)