Metaballs Generator

Make 2-D metaballs: round shapes that flow into each other when they come close. Each ball adds a field r²/d² (r is its radius, d the distance from its centre); the tool adds the fields of all the balls and traces the outline where the sum equals the threshold T, with marching squares and every edge point refined until it sits on the outline. One ball alone gives a circle of radius r/√T, and two equal balls join into one shape when their centres are closer than 2√2 r/√T. Choose one ball, two, a chain, a ring, a grid, a seeded cluster or scatter, or type your own list of balls, then outline, filled shapes, layers of inner levels or contour lines. It prints at real size, filling the page or at the width and height you type. Download a PDF, a 300 DPI PNG or an SVG. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size): the design prints at real size. The SVG holds each outline as a path and each filled area as cell strips.

Balls

Look

Size

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. Every outline is traced from the metaball sum by our own code. You may use what you make here, including commercially, with no credit needed.

How to make and print metaballs

  1. Pick a preset, or choose an arrangement of balls.
  2. Set the number of balls, the radius, the spacing and the threshold T.
  3. Or type your own balls as x, y, r from the centre of the design.
  4. Choose outline, filled shapes, layers or contour lines, and the colours.
  5. Choose fill the page or a width and height.
  6. Download the PDF and print at 100% (Actual size), or the PNG or SVG.

What you can use it for

  • Logos, icons and stickers with soft joined shapes
  • Posters and wall art
  • Laser, vinyl and plotter cutting from the SVG outline
  • Lessons on fields, contours and implicit curves
  • Backgrounds for covers, cards and packaging
  • Checking a metaball shader or game effect against exact outlines

The 16 presets

PresetArrangementBallsRadiusTLookOutlines drawnPrinted size
One ball: a circle of radius r / sqrt(T)one ball130 mm1outline1184.5 mm × 236 mm
Two balls just joined (gap below the merge distance)two balls225 mm1filled1184.5 mm × 236 mm
Two balls just apart (gap above the merge distance)two balls225 mm1filled2184.5 mm × 236 mm
Chain of 5 ballschain514 mm1filled1184.5 mm × 236 mm
Ring of 8 ballsring814 mm1outline2184.5 mm × 236 mm
Grid of 12 ballsgrid1212 mm1filled1184.5 mm × 236 mm
Cluster of 14 balls (seed 3)cluster1414 mm1filled1184.5 mm × 236 mm
Scattered 24 balls (seed 7)scattered2414 mm1filled4184.5 mm × 236 mm
Cluster with 5 layerscluster1016 mm0.6layers (5)7184.5 mm × 236 mm
Contour lines, 6 levelsscattered1616 mm0.5contour lines (6)26184.5 mm × 236 mm
Low threshold: soft joined shapesscattered1812 mm0.35filled2184.5 mm × 236 mm
High threshold: small separate shapesscattered1816 mm2.5filled6184.5 mm × 236 mm
Ring of 6 with 4 layersring618 mm0.8layers (4)20184.5 mm × 236 mm
Real size 150 mm square, 9 ballsgrid914 mm1filled1150 mm × 150 mm
Real size 6 x 4 in, 3 balls in a rowchain30.7 in1outline16 in × 4 in
Your own balls typed as x, y, rtyped list3typed1filled1184.5 mm × 236 mm

Counts and sizes are worked out by the tool on US Letter; fill the page uses the printable area.

One-ball radius and merge distance, checked

Ball radius rTr/√TTraced outline (distance from centre)Merge distance 2√2 r/√TOutlines at 98 %Outlines at 102 %
20 mm0.528.28 mm28.284 to 28.284 mm80.00 mm12
20 mm120.00 mm20.000 to 20.000 mm56.57 mm12
20 mm214.14 mm14.142 to 14.142 mm40.00 mm12
20 mm410.00 mm10.000 to 10.000 mm28.28 mm12
10 mm110.00 mm10.000 to 10.000 mm28.28 mm12
30 mm130.00 mm30.000 to 30.000 mm84.85 mm12

Each row is drawn by the tool at 180 × 120 mm.

What prints

DownloadWhat is in it
PDFThe design at real size, vector outlines and fills, with T, the one-ball radius, the merge distance and a check bar
PNG 300 DPIThe same sheet as a picture
SVGEach outline as a path and each filled area as cell strips, at real size

To edit an outline, use the SVG Path Editor; for a cutter that needs DXF, use SVG to DXF.

Which tool to use

You wantUse
Shapes that merge from placed balls, at a thresholdMetaballs Generator (this page)
One random smooth shapeBlob Generator
Spots and stripes from a reaction–diffusion simulationTuring Pattern
Contour lines of a random landscapeTopographic Map Generator

Other tools: the Blob Generator makes single random shapes, the Noise Texture Generator soft random textures, and the Topographic Map Generator draws contour maps.

More free tools

Maths art and printables?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What are metaballs?

Metaballs are shapes drawn as the outline of a sum of fields. Here each ball has the field r²/d², which is large near its centre and falls off with distance. The outline is the curve where the total field equals the threshold T. Far apart, each ball is its own circle; close together, the fields add up between them and the outlines join smoothly.

Why is one ball a circle of radius r/√T?

Alone, the field is r²/d², and r²/d² = T exactly when d = r/√T. So at T = 1 the outline is the ball’s own radius, at T = 4 half of it, and at T = 0.25 twice it. The table below shows the traced outline against r/√T.

When do two balls join?

For two equal balls with centres D apart, the field along the line between them is lowest midway, where it is 2 × r²/(D/2)² = 8r²/D². The outlines touch when that equals T, so they join when D is less than 2√2 r/√T. The table shows our test: one outline at 98 % of that distance and two at 102 %.

How is the outline traced?

The design is sampled on a grid of cells no bigger than 0.5 mm. Marching squares finds every cell edge where the field crosses T, and each crossing is refined by halving the interval 40 times, so every point of the outline sits on f = T (in our tests, within one part in a million on every preset).

What do the looks show?

Outline draws the f = T curve. Filled shapes colour the inside, where f ≥ T. Layers add inner levels at 1.6 T, 1.6² T and so on, shaded darker towards the centres. Contour lines draw the same levels as lines only, like a contour map of the field.

What is the threshold T?

The field value the outline follows. Lower T makes every shape bigger and joins them sooner; higher T makes them smaller and keeps them apart. Spacing and radius set the size; T sets how soon the shapes merge.

Is this the same as the blob generator?

No. The blob generator draws one random smooth shape from a few points. This page draws the outline of a sum of ball fields, so shapes merge and split by the maths, and you can place every ball.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. Every outline is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.