Draw Multiflake Fractal
Generate a Multiflake fractal — polygonal fractal with customizable number of sides
Pick a polygon shape, set the recursion depth and scale ratio, and render a multiflake fractal you can download as a PNG — no math libraries or code required. The fractal stacks smaller copies of your chosen polygon at every vertex and center, so a hexagon gives you a snowflake pattern while a pentagon produces star-shaped gaps. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool draws a base polygon with your chosen number of sides, then places scaled-down copies at each vertex plus one in the center. It repeats this for every copy, down to whatever iteration depth you set. Each level multiplies the polygon count by (sides + 1), so a hexaflake at 4 iterations already has over 2,400 shapes. The HTML5 Canvas API draws them all in one pass, and you grab the result as a PNG.
Examples
Classic Hexaflake
The most recognizable multiflake — built from hexagons, looks like a snowflake under a microscope.
Sides: 6
Iterations: 4
Scale: 0.333
Fill: #4f46e5
Background: #ffffff
A dense snowflake pattern with 2,401 hexagons, self-similar at every zoom level. Great as a desktop wallpaper or poster element.
Pentaflake for a Logo Background
Five-sided fractals produce star-like gaps between clusters. Works well behind text.
Sides: 5
Iterations: 4
Scale: 0.382
Fill: #0ea5e9
Background: #0f172a
Bright cyan pentaflake on dark navy — 1,296 pentagons arranged in a five-fold symmetry pattern with visible star-shaped voids.
Triangle Flake at Low Iteration
Quick render for teaching recursion basics. Three sides, two iterations — easy to count every triangle by hand.
Sides: 3
Iterations: 2
Scale: 0.5
Fill: #ef4444
16 red triangles in a Sierpinski-like arrangement. Simple enough for a classroom slide.
Who Uses This
Generate fractal patterns for backgrounds, posters, and textile prints without needing Illustrator scripts.
Show students how recursion, self-similarity, and polygon geometry connect visually in under a minute.
Grab a quick fractal PNG for placeholder art, loading screens, or generative-art side projects.
Use exported PNGs as base layers in Photoshop or Procreate, then paint over the geometry.
Common Mistakes
A 7-sided polygon at 5 iterations means 8^5 = 32,768 shapes. Your browser will freeze or crash. Start at 3 iterations for anything above 6 sides, then bump up only if it renders fast.
Setting scale above 0.4 on most polygons makes child copies overlap so much the fractal structure disappears. The "correct" ratio varies by side count, but 0.3–0.38 is a safe starting range for most shapes.
If the fill is light gray and the background is white, the fractal details vanish. Use high-contrast combos — dark fill on light background or bright fill on dark background — so the recursive structure stays readable.
Technical Details
- Processing: 100% client-side (HTML5 Canvas API)
- Browser Support: Chrome, Firefox, Safari, Edge
- Canvas Size: 800 × 800 pixels
- Export Format: PNG
- Max Iterations: 5 (to prevent browser freezes on high side counts)
Frequently Asked Questions
What is a multiflake fractal?
A multiflake is a fractal built by recursively placing scaled copies of a regular polygon at its vertices and center. Hexaflakes and pentaflakes are the most common variants. The name comes from the snowflake-like appearance — especially with 6 sides.
How is a multiflake different from a Sierpinski triangle?
A Sierpinski triangle removes the center of each triangle, leaving holes. A multiflake adds copies outward — it grows rather than subtracts. With 3 sides and the right scale, a multiflake can look Sierpinski-ish, but the construction method is different.
Can I use the generated fractal commercially?
Yes. The PNG you download is yours. Mathematical fractals are not copyrightable — they are equations rendered visually. Use the output in designs, prints, videos, or whatever you need.
Why does my fractal look like a solid shape instead of a pattern?
Your scale factor is probably too high. When child polygons overlap completely, the gaps between them vanish and you get a filled blob. Try lowering the scale to 0.3 or below and re-rendering. You should start seeing the recursive gaps that give fractals their character.
Does this tool work on phones?
It does, though rendering high-iteration fractals on a phone takes longer than on a laptop. Stick to 3 iterations on mobile if you are using 5+ sides. The download button works the same way — you will get a full-resolution PNG saved to your device.