Generate a Cantor Dust Fractal
Draw a Cantor dust fractal. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate a Cantor Dust Fractal
- 1. Set the iteration count. Move the Iterations slider to control how many recursive levels the Cantor dust pattern goes through, with more iterations producing finer, denser detail.
- 2. Adjust the canvas and styling. Set Width and Height for the drawing, and choose Line color and Background color along with Line width to style the rendered dust pattern.
- 3. Review the rendered fractal. The tool draws the two-dimensional Cantor dust by recursively keeping the four corner cells of each square, producing a self-similar scattered pattern.
- 4. Download the image. Save the rendered SVG to illustrate a topology or fractal geometry lesson, or to use as a generative art background.
When to use Generate a Cantor Dust Fractal
Generate a Cantor Dust Fractal renders the two-dimensional analog of the classic Cantor set, built by recursively keeping only the four corner cells of each square. Use it to visualize this self-similar, totally disconnected structure.
- Illustrating self-similarity for a math lesson. A course on fractal geometry introduces the Cantor set's structure, and rendering its two-dimensional dust version gives students a clear image of recursive self-similarity in two dimensions.
- Explaining the concept of measure zero. A topology or real analysis discussion of sets with measure zero but uncountably many points benefits from a visual of Cantor dust getting sparser at each iteration.
- Comparing iteration depth visually. You want to see how increasing the Iterations value changes the density and detail of the dust pattern, rendering several versions to compare side by side.
- Generating a textured background for a design. You need a scattered, geometric-looking background pattern for a poster or webpage, and adjusting the colors and iteration count of the Cantor dust produces a usable texture.
Examples
A 4-iteration Cantor dust
Output
An SVG drawing of two-dimensional Cantor dust: the four corner cells of each square, recursively.
About the Generate a Cantor Dust Fractal tool
Generate a Cantor Dust Fractal does its work locally, right in the browser. Draw a Cantor dust fractal. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Math Tools collection on EditSafely, a set of 234 small, focused Math utilities that share the same instant, private workspace.
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.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Generate a Cantor Dust Fractal 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.