Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Generate Sierpinski Hexagon

Draw the Sierpinski hexagon (hexaflake) fractal — a self-similar pattern built from hexagons.

About

Set the iteration depth and a hexagon splits into six smaller copies of itself, recursively, until you get a hexaflake. Swap the fill color or line weight, then save the result as PNG. And everything runs in your browser. Nothing gets uploaded.

FAQ

What is the fractal dimension?
The Hausdorff dimension is log(6)/log(3) ≈ 1.631.

How many hexagons at each level?
At iteration n, there are 6ⁿ hexagons.

How is this related to the Sierpinski triangle?
Both use a similar removal process but with different base shapes — triangles vs hexagons.

What is the remaining area?
The area fraction remaining after n iterations is (6/7)ⁿ.

Related Tools