Question: in java design and implement an applet that generalizes the kochSnowflake program.Allow the user to chose a fractal design from a menu item and to
in java
design and implement an applet that generalizes the kochSnowflake program.Allow the user to chose a fractal design from a menu item and to pick the background and drawing colrs. 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 ordr 1 is a straight line. Each successive order is created byreplacing allline 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 to is replaced by two C curves fom to and from < x2,y2> to where: x2 = (x1 + x3 + y1-y3)/2; y2 = (x3+y1+y3-x1)/2;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
