EditSafely

Generate a Sierpinski Hexagon

Draw a Sierpinski hexaflake fractal. Runs entirely in your browser, so your data never leaves your device.

Output

The result appears here as you type.

Options

How to use Generate a Sierpinski Hexagon

  1. 1. Set the recursion depth. Choose Depth for how many times each hexagon splits into six smaller hexagons around its edges. A depth-3 hexaflake already contains 343 filled hexagons.
  2. 2. Decide whether to fill the center. Toggle Include center hexagon to add or remove the middle hexagon from each subdivision, changing the hexaflake from a solid ring pattern to one with visible central gaps.
  3. 3. Size and style the drawing. Set Width (px), Height (px), Line color, Background color and Line width to fit the hexaflake's six-fold symmetric silhouette.
  4. 4. Review the rendered hexaflake. The tool draws the Sierpinski hexagon, or hexaflake, as an SVG of filled hexagons arranged in a six-fold symmetric pattern. Save it once the depth and center option look right.

When to use Generate a Sierpinski Hexagon

Generate a Sierpinski Hexagon draws the hexaflake, a hexagonal analog of the Sierpinski triangle built by repeatedly surrounding a hexagon with six smaller copies of itself. It is a natural next step after the triangular and square Sierpinski fractals, using six-fold symmetry instead of three-fold or four-fold.

  • Extending Sierpinski fractals to six-fold symmetry. After covering the Sierpinski triangle and carpet, the hexaflake shows students how the same recursive surrounding idea extends naturally to a hexagon's six-fold symmetry.
  • Designing a honeycomb-inspired pattern. The hexaflake's hexagonal tiling structure resembles a honeycomb at multiple scales, making it a natural choice for nature-themed generative art or packaging design.
  • Comparing filled versus hollow center variants. Toggling Include center hexagon on and off produces two visually distinct patterns from the same construction, useful for illustrating how a single rule choice changes the fractal.
  • Building a set of polyflake comparison figures. Place the hexaflake alongside the pentaflake and general polyflake tools to show how the number of sides affects the resulting fractal's symmetry and hole pattern.

Examples

A depth-3 hexaflake

Output

An SVG drawing of the hexaflake made of 343 filled hexagons.

About the Generate a Sierpinski Hexagon tool

Generate a Sierpinski Hexagon is a free online tool that works entirely inside your web browser. Draw a Sierpinski hexaflake fractal. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 234 Math utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 7 settings, including Depth, Include center hexagon, Width (px) and Height (px), and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.

Frequently asked questions

Is Generate a Sierpinski Hexagon free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Does the generator send anything to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How do I get a different result?

Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

Can I save what the tool produces?

Yes. Use the download or copy controls in the output panel to keep the rendered result once it looks the way you want.

Related tools

All Math Tools