Report Tool or Give Us Suggestions

Sierpinski Hexagon Generator

Generate and render beautiful Sierpinski hexagon fractals (hexaflakes) with custom iterations, rotation, and central hexagon controls.

L ading . . .

Understanding the Sierpinski Hexagon: The Geometry of Hexaflakes

The Sierpinski Hexagon, or Hexaflake, is an elegant, highly symmetric regular polygon fractal. Formed by recursively replacing a parent hexagon with smaller copies of itself scaled by exactly one-third, it displays marvelous self-similarity and snowflake-like structural characteristics.

The Mathematical Construction

Unlike other regular polygon flakes which require complex trigonometric scaling factors, the regular hexagon has a remarkably simple scaling factor. Because of its internal structural relationship with equilateral triangles, a regular hexagon of side length $S$ can be divided perfectly into smaller hexagons of side length $S/3$:

Scaling Factor:
$$r = \frac{1}{3} \approx 0.333333$$
Scaling each child by $1/3$ and placing them at the 6 outer corners leaves a central hexagonal space that is exactly the size of a child hexagon.

Structural Variations: 6-Copy vs. 7-Copy

Our generator allows you to toggle between two distinct mathematical variations:

  • Standard Hexaflake (6-Copy): Places smaller hexagons only in the 6 outer corners. This leaves a central hexagonal hole, creating a beautiful hollow snowflake web of Hausdorff dimension $D \approx 1.6309$.
  • Filled Hexaflake (7-Copy): Places a seventh hexagon in the center of the structure. Because the center is exactly the same size as the corners, they tile perfectly, leaving absolutely no empty spaces between the immediate neighbors at that level. The Hausdorff dimension rises to $D \approx 1.7712$.

Fractal Properties

The fractional Hausdorff dimension $D$ determines how densely the fractal fills 2D space:

Flake Variation Number of Copies ($N$) Hausdorff Dimension ($D$) Visual Symmetry
Standard Outer Hexaflake 6 Copies $$D = \frac{\log(6)}{\log(3)} \approx 1.6309$$ Hollow snowflake-like loops, hexagonal gaps
Filled Central Hexaflake 7 Copies $$D = \frac{\log(7)}{\log(3)} \approx 1.7712$$ Perfect tile packing, small triangular side gaps

Frequently Asked Questions

Frequently Asked Questions

Why does a regular hexagon have such a simple scaling factor of 1/3?

A regular hexagon is composed of 6 equilateral triangles meeting at a central point. If you divide each of these triangles into 9 smaller equilateral triangles (which is a standard $1/3$ linear scaling subdivision), you can reassemble them into smaller hexagons. This geometric alignment makes the 1/3 scaling factor perfect for hexagons.

How many hexagons are drawn at iteration depth 5?

For the standard 6-copy outer hexaflake, the number of leaf shapes at level 5 is $6^5 = 7,776$ hexagons. For the 7-copy filled version, it is $7^5 = 16,807$ hexagons. Our high-fidelity HTML5 `` rendering engine compiles and draws all these shapes in a fraction of a millisecond.

Can I download the generated hexaflake as vector graphics?

Yes! You can download the generated hexaflake as an SVG vector file directly from our export panel. This vector output is fully scalable, making it perfect for infinite zoom, digital illustrations, or physical printing.