Koch Snowflakes

Limits: 1s, 512 MB

The Koch snowflake can be constructed by starting with an equilateral triangle, then recursively altering each line segment as follows: 1. divide the line segment into three segments of equal length. 2. draw an equilateral triangle that has the middle segment from step 1 as its base and points outward. 3. remove the line segment that is the base of the triangle from step 2. Below is a figure of Koch snowflake of order 1, 2, 3 and 4.

This is a companion discussion topic for the original entry at https://toph.co/p/koch-snowflakes