Skip to content

Commit 5e31e8d

Browse files
author
James Brundage
committed
docs: Updating README.md
Adding Koch Snowflake Pattern
1 parent f85b881 commit 5e31e8d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Examples/KochSnowflakePattern.svg

Lines changed: 8 additions & 0 deletions
Loading

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,21 @@ Because this Turtle generates SVG, we can also use it to create patterns.
130130
<div align='center'>
131131
<img src='./Examples/HexagonPattern.svg' alt='Hexagon Pattern' width='50%' />
132132
</div>
133+
Speaking of patterns, Turtle is often used to draw fractals.
134+
135+
This implementation of Turtle has quite a few built-in fractals.
136+
137+
For example, here is an example of a pattern comprised of Koch Snowflakes:
138+
139+
~~~PowerShell
140+
141+
turtle KochSnowflake 25 6 |
142+
Set-Turtle -Property Stroke '#4488ff' |
143+
Save-Turtle -Path ./Examples/KochSnowflakePattern.svg -Property Pattern
144+
145+
~~~
146+
<div align='center'>
147+
<img src='./Examples/KochSnowflakePattern.svg' alt='Snowflake Pattern' width='50%' />
148+
</div>
133149
![SierpinskiTriangle](./Examples/EndlessSierpinskiTrianglePattern.svg)
134150

0 commit comments

Comments
 (0)