EditSafely

Generate a Sierpinski Arrowhead Curve

Draw an arrowhead fractal curve. 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 Arrowhead Curve

  1. 1. Set the iteration count. Choose Iterations for how finely the arrowhead curve traces the Sierpinski triangle. A 6-iteration curve already closely approximates the familiar triangular gasket shape.
  2. 2. Size the canvas. Set Width (px) and Height (px) to fit the triangular outline the curve traces, keeping the canvas roughly matched to a triangle's aspect ratio.
  3. 3. Pick colors and line width. Choose Line color, Background color and Line width depending on whether you want the single continuous path visible as a line or the overall triangle shape emphasized.
  4. 4. Review the rendered curve. The tool draws the Sierpinski arrowhead curve, a single unbroken line that traces the Sierpinski triangle, as an SVG. Save it once the detail level looks right.

When to use Generate a Sierpinski Arrowhead Curve

Generate a Sierpinski Arrowhead Curve draws the Sierpinski triangle as a single continuous line rather than a set of filled triangular regions, showing that the familiar gasket shape can also be produced by an L-system turtle path. It connects two different ways of constructing the same fractal.

  • Showing an L-system construction of the Sierpinski triangle. Students who know the Sierpinski triangle from the filled-triangle removal process see here that an L-system turtle path can trace the same overall shape as a single continuous line.
  • Comparing curve-based and area-based fractal constructions. Rendering the arrowhead curve next to the standard filled Sierpinski triangle highlights the difference between a fractal defined by a boundary curve versus one defined by removing area.
  • Teaching L-systems with a recognizable target shape. The arrowhead curve is a good L-system exercise because students already recognize the resulting Sierpinski triangle shape, making it easier to verify their implementation is correct.
  • Producing an alternate style Sierpinski figure. A paper or presentation wanting a line-drawing version of the Sierpinski triangle, rather than a filled one, can use the arrowhead curve as that alternate rendering.

Examples

A 6-iteration arrowhead curve

Output

An SVG drawing of the Sierpinski arrowhead curve, a single line tracing the Sierpinski triangle.

About the Generate a Sierpinski Arrowhead Curve tool

Generate a Sierpinski Arrowhead Curve runs as plain JavaScript in your browser tab, with no server behind it. Draw an arrowhead fractal curve. 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 6 settings, including Iterations, Width (px), Height (px) and Line color, 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.

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 Arrowhead Curve 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