# Boolean Operations and Tracing

> How to build new shapes by joining and cutting simple ones. What stroke and fill are, and how tracing turns a pixel picture into sharp shapes.

**Course:** [Figma and Design Tools](https://learn.benibix.com/learn/design-design-tools)  
**Time:** 10 min

**After this lesson you can:**

- Build an icon from two circles
- Set a shape's stroke and fill
- Trace a small logo into shapes

## How to make new shapes from simple ones

Boolean operations make one new shape out of two. There are four. Union joins them into one shape. Subtract cuts the top shape out of the bottom one. Intersect keeps only the part where they overlap. Exclude keeps everything except the overlap. Most icons are built this way, not drawn by hand.

Take a moon icon. Put one circle on top of another, a little to the side, and subtract. What is left is a crescent. A cloud is three circles and a rounded box joined with union. A shape built from clean circles is cleaner than one drawn freehand.

Every shape is then painted in two ways. The fill is the color inside it. The stroke is the line along its edge, with its own color and thickness. Either can be turned off. An open squiggle usually has only a stroke, because it has no inside to fill.

Stroke width needs care. A 2 pixel stroke looks right on a small icon and thin on a big one. When you scale a shape, some apps scale the stroke too and some do not. Check it after every resize, or the icons in a set stop matching.

Image tracing works the other way round. It turns a picture made of pixels into vector shapes. The app finds the edges and the areas of color, then draws paths around them. Illustrator calls it Image Trace, and Inkscape calls it Trace Bitmap.

Tracing is a rescue tool. It is useful when all you have is a small photo of an old logo. You choose how many colors to keep and how close to follow the edges. The result can then grow to any size without blur.

The common mistake is to trust the trace as it comes out. It often gives wobbly edges and hundreds of extra points. Treat it as a first draft. Clean up the paths by hand, or redraw the simple parts with the pen tool.

![Two overlapping circles shown four times. Union fills both circles as one shape. Subtract leaves the left circle with a bite taken out. Intersect fills only the overlap. Exclude fills both circles except the overlap.](https://learn.benibix.com/diagrams/boolean-operations.svg)

## The four Boolean operations

| Operation | What it keeps | Good for |
| --- | --- | --- |
| Union | Both shapes as one | A cloud from circles |
| Subtract | The bottom shape, minus the top | A moon, or a hole in a ring |
| Intersect | Only the overlap | A leaf from two circles |
| Exclude | Both shapes, minus the overlap | Patterns and cut-out effects |

### Example: A bakery logo comes back to life

A bakery only has a photo of its old logo, 200 pixels wide. Ana traces it with 3 colors.

She deletes over 400 stray points and redraws the round parts with circles. The new logo prints sharp on a sign 2 meters wide.

**Words in this lesson:** [Boolean Operations](https://learn.benibix.com/term/design/boolean-operations), [Stroke and Fill](https://learn.benibix.com/term/design/stroke-and-fill), [Image Tracing](https://learn.benibix.com/term/design/image-tracing)

**Question:** Which way of joining two circles makes a crescent moon shape?

**Answer:** Subtract. Subtract cuts the top circle out of the bottom one. What is left of the bottom circle is a crescent.

---

Source: https://learn.benibix.com/learn/design-design-tools/boolean-operations-and-tracing
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
