Problem
The Koch Snowflake. A snowflake-like shape is recursively defined as follows. Start with an equilateral triangle:
Next, increase the size by a factor of three and replace each straight line with four line segments:
Repeat the process:
Write a program that draws the iterations of the snowflake shape. Supply a button that, when clicked, produces the next iteration.