Koch Polyflake Generator
Generate Koch polyflake fractals with customizable polygon sides, iterations, colors, and animation. Free online Koch polygon fractal generator with PNG, SVG, and JSON export.
What Is a Koch Polyflake?
A Koch polyflake is a generalization of the classic Koch snowflake fractal. While the Koch snowflake applies Koch curve construction to the three sides of an equilateral triangle, a Koch polyflake extends this concept to any regular polygon — squares, pentagons, hexagons, octagons, and beyond. Each edge of the chosen polygon undergoes the same recursive Koch subdivision, producing increasingly intricate fractal boundaries.
How Is a Koch Polyflake Constructed?
The construction follows the same fundamental Koch algorithm applied to an n-sided regular polygon:
- Start with a regular polygon of n sides.
- Divide each edge into three equal segments.
- Replace the middle segment with two sides of an equilateral triangle pointing outward.
- Repeat the process recursively for all resulting edges.
After k iterations, the fractal has n × 4k segments, each 1/3 the length of the previous iteration's segments. The total perimeter grows by a factor of 4/3 at each step, making it divergent, while the enclosed area converges to a finite value.
Popular Koch Polyflake Variations
- Koch Triangle (3 sides): The classic Koch snowflake — the most recognized fractal shape.
- Koch Square (4 sides): Also known as a quadratic Koch curve when applied to a square, producing a cross-like pattern with square symmetry.
- Koch Pentagon (5 sides): Creates a five-fold symmetric fractal with starfish-like features.
- Koch Hexaflake (6 sides): A six-fold symmetric fractal resembling a decorative snowflake or gear wheel.
- Koch Octagon (8 sides): An eight-fold symmetric fractal with a complex, rosette-like boundary.
Using This Koch Polyflake Generator
Select the number of polygon sides to define the base shape, then adjust the recursion depth to control fractal complexity. Customize the color scheme, enable neon glow effects, and watch the fractal draw itself with the animated rendering feature. Export your creation as a PNG image, SVG vector, or JSON coordinate data.
Frequently Asked Questions
What is the difference between a Koch polyflake and a Koch snowflake?
The Koch snowflake is a specific case of the Koch polyflake where the base polygon has 3 sides (an equilateral triangle). A Koch polyflake generalizes this to any regular polygon — you can use 4, 5, 6, 8, or more sides. Each polygon produces a unique fractal pattern with different rotational symmetry.
Does the number of sides affect performance?
Yes. More polygon sides means more edges to subdivide at each iteration. A polygon with n sides at recursion depth k produces n × 4^k line segments. For example, a hexagon (6 sides) at depth 4 produces 6 × 256 = 1,536 segments, while a triangle (3 sides) at the same depth produces only 768. For higher-sided polygons, use a lower recursion depth to maintain smooth performance.
What is the fractal dimension of a Koch polyflake?
Regardless of the number of polygon sides, each edge undergoes the same Koch curve subdivision (divide into 3, add equilateral triangle bump). Therefore, the fractal dimension of the boundary remains log(4)/log(3) ≈ 1.2619 for all Koch polyflake variants. The base polygon only affects the overall rotational symmetry and visual appearance, not the fractal dimension.
Which polygon produces the most visually interesting Koch polyflake?
This is subjective, but hexagonal Koch polyflakes (6 sides) are particularly popular because of their snowflake-like appearance with six-fold symmetry. Pentagonal Koch polyflakes (5 sides) also produce striking star-like patterns. We recommend experimenting with different polygon counts and recursion depths to find the most visually appealing results for your purpose.
Can I use Koch polyflake fractals for commercial purposes?
Yes. All fractals generated by this tool are created entirely in your browser using mathematical algorithms. You can export the results as PNG, SVG, or JSON and use them freely for any purpose including commercial projects, educational materials, and artistic works.
Related tools
Your recent visits