Design and implement an applet that generalizes the
KochSnowflake program. Allow the user to choose a fractal design from a menu item and to pick the background and drawing colors. The buttons to increase and decrease the order of the fractal will apply to whichever fractal design is chosen. In addition to the Koch snowflake, include a C-curve fractal whose order 1 is a straight line. Each successive order is created by replacing all line segments by two line segments, both half of the size of the original, and which meet at a right angle. Specifically, a C-curve of order N from 6x1, y17 to 6x3, y37 is replaced by two C-curves from to and from 6x2, y27 to 6x3, y37 where:
■ x2 = (x1 + x3 + y1 - y3) √ 2;
■ y2 = (x3 + y1 + y3 - x1) √ 2;
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.