A program that represents the Koch curve and Koch snowflake.
To download the latest release, click here.
After running the program, a window will appear where you can set the points between which the graph will be plotted and specify the iteration count.
You can choose between the Koch curve or the Koch snowflake using the drop-down menu.
Once the graph is plotted, you can zoom-in or zoom-out using the mouse wheel
. You can also modify the iteration count of the fractal using the Up Arrow
and Down Arrow
keys. (When using the arrow keys, the maximum iteration count is limited to 5 due to performance limitations in handling a large number of lines).
The program divides the given segment into three parts and replaces the central segment with an equilateral triangle. This operation is then repeated for all newly created segments based on the number of iterations set by the user.
To generate the snowflake, the program first creates an equilateral triangle before applying the Koch curve transformation.
When the iteration count is too high, the program may become slow and jerky due to the graphics library's performance limitations.