EditSafely

Generate a Sierpinski Polyflake

Draw a Sierpinski n-gon 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 Polyflake

  1. 1. Choose the base polygon. Set Sides for the number of sides of the starting n-gon, from a triangle up to many-sided polygons, generalizing beyond the fixed pentaflake and hexaflake shapes.
  2. 2. Set the recursion depth. Choose Depth for how many times each polygon surrounds itself with smaller copies. A depth-3 pentagon polyflake already produces 125 filled pentagons.
  3. 3. Decide whether to fill the center. Toggle Include center polygon to add or remove the middle shape from each subdivision, changing the density and visible gap pattern of the result.
  4. 4. Size, style and review the drawing. Set Width (px), Height (px), Line color, Background color and Line width, then review the rendered n-flake and save it once the shape and depth look right.

When to use Generate a Sierpinski Polyflake

Generate a Sierpinski Polyflake generalizes the pentaflake and hexaflake construction to any regular polygon, letting you choose the number of sides directly. It is for exploring the full family of Sierpinski-style n-flakes rather than being limited to the two most common preset shapes.

  • Exploring polyflakes beyond pentagon and hexagon. The dedicated pentaflake and hexaflake tools cover the two most common cases, but this one lets you generate a heptagon, octagon or any other n-gon polyflake for comparison.
  • Studying which polygon counts leave visible gaps. Only certain regular polygons tile the plane without gaps. Generating polyflakes at different side counts lets students see directly which shapes leave gaps in the recursive pattern.
  • Building a systematic set of comparison figures. A paper or lecture surveying n-flake fractals across many polygon side counts can generate each one from a single tool rather than needing a separate tool per shape.
  • Designing a custom decorative motif. Choosing an unusual number of sides, such as seven or eight, produces a distinctive flake pattern for a design project that wants something less common than the standard hexaflake.

Examples

A depth-3 pentagon polyflake

Output

An SVG drawing of the 5-sided n-flake made of 125 filled pentagons.

An octaflake

Output

With Sides set to 8, an SVG drawing of the 8-sided n-flake.

About the Generate a Sierpinski Polyflake tool

Generate a Sierpinski Polyflake runs as plain JavaScript in your browser tab, with no server behind it. Draw a Sierpinski n-gon fractal. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Math Tools section, 234 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 8 settings, including Sides, Depth, Include center polygon and Width (px), and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Generate a Sierpinski Polyflake cost anything?

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?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

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?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

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