Write a program that uses recursion to draw a Koch snowflake fractal of any given order. A Koch snowflake of order 0 is an equilateral triangle. To create the next-higher-order fractal, each line segment in the shape is modified by replacing its middle third with a sharp protrusion made of two line segments, each having the same length as the replaced one, as shown in Figure 13-11.
The following is the necessary information to compute the three new points (x2, y2), (x3, y3), and (x4, y4) in terms of (x1, y1) and (x5, y5).
Let:
The first three Koch snowflakes produced by the program might look like Figure 13-12.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.