File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,13 @@ function Save-Turtle {
8
8
turtle SierpinskiTriangle 42 4 |
9
9
Save-Turtle ./SierpinskiTriangle-42-4.svg
10
10
. EXAMPLE
11
+ # We can save a turtle as a pattern by using `-Property Pattern`
11
12
turtle Flower 42 |
12
- Save-Turtle ./Flower-42.svg Pattern
13
+ Save-Turtle ./Flower-42.svg -Property Pattern
14
+ . EXAMPLE
15
+ # We can also save a turtle as a pattern by naming the file with `Pattern` in it.
16
+ turtle Flower 42 10 6 36 |
17
+ Save-Turtle ./HexFlowerPattern.svg
13
18
. EXAMPLE
14
19
Move-Turtle BoxFractal 15 5 |
15
20
Set-Turtle Stroke '#4488ff' |
@@ -57,6 +62,8 @@ function Save-Turtle {
57
62
' \.png$' { ' PNG' }
58
63
' \.jpe?g$' { ' JPEG' }
59
64
' \.webp$' { ' WEBP' }
65
+ ' Pattern' { ' Pattern' }
66
+ ' Symbol' { ' Symbol' }
60
67
default { ' SVG' }
61
68
}
62
69
You can’t perform that action at this time.
0 commit comments