Text Link

Feature Insights

A collection of insightful tips and guides to help you become a great designer.

Beta
Feature Insights
<path d="M17.0138 16.1972L20.9563 12.3098C22.1058 11.1627 22.0736 9.81384 20.9026 8.62426L20.344 8.07195C19.2912 9.41023 16.2833 11.014 15.7031 10.4405C15.6172 10.3449 15.5957 10.1643 15.7354 10.0263C16.96 8.81544 17.7658 7.62586 17.9591 5.71404L12.7382 0.552114C11.7283 -0.456904 10.0095 -0.0957815 9.52607 1.74169C8.88151 4.31203 8.3014 5.82025 7.72129 7.02045L17.0138 16.1972ZM1.42605 22.7824C3.03746 24.3862 5.13229 24.4074 6.72222 22.8355C7.94689 21.6247 9.12859 18.9162 10.0417 17.5249L12.4481 19.904C13.2323 20.69 14.1777 20.69 14.9189 19.9359L15.7891 19.0756C16.5518 18.3002 16.5411 17.4186 15.7569 16.6433L7.63535 8.62426C6.85113 7.83829 5.938 7.82767 5.16452 8.59239L4.3051 9.44209C3.55311 10.1962 3.54237 11.1096 4.33733 11.885L6.74371 14.2641C5.33641 15.1669 2.60775 16.3459 1.38308 17.5461C-0.206846 19.1287 -0.196103 21.1998 1.42605 22.7824ZM4.17619 21.4016C3.48866 21.4016 2.93003 20.8599 2.93003 20.1908C2.93003 19.511 3.48866 18.9693 4.17619 18.9693C4.85298 18.9693 5.40086 19.511 5.40086 20.1908C5.40086 20.8599 4.85298 21.4016 4.17619 21.4016Z" fill="currentcolor"/>
Boolean vs. Masks

Boolean vs. Masks

In this post, we will look at how to handle vector graphics Boolean operations. But more importantly, we will compare Boolean operations vs Masks and show you when one needs to be used over the other.

At its core, “Boolean” is a logic term that can be either “true” or “false,” and is commonly used in computer programming.

In terms of graphics design, the meaning is quite similar. We use “boolean” to describe how shapes are combined, using values such as “and”, “or,” “not,” or a combination of these. Getting too technical?

Simply put, Boolean operations are a very powerful tool for any product or graphic design project. A complicated-looking shape can be constructed in no time using the five Boolean operations present in Vectornator, namely Union, Subtract, Intersect, Difference, and Divide. You’ll find these operations at the top of the Path Tab.

Creating complex shapes is something you’ll inevitably come across in icon or logo design, so let’s take a deeper look at these 5 options:

Boolean Unite

This combines two input shapes into a new shape. The order of the layers does not matter in the case of Unite operations, but the output shape converts to the style of the bottom layer.

Boolean Subtract

This operation subtracts the shape on top from the shape below. As you might have guessed, the order of the layers does play a role in this operation; the bottom layer is treated as the base and the top is subtracted from it.

Boolean Intersect

This outlines the path of the shape shared by both layers. You will be left with only the portion where the two layers overlapped. Just like the Unite operation, the order of the layers does not matter.

Boolean Exclude

This is the opposite of Intersection. It deletes the path that overlaps when two shapes are combined. The order does not matter here either. If we think of this mathematically, Difference is Subtracting the Intersection from the Union shape. We’ll let that marinate for a minute.

Boolean Divide

This operation is quite unique in itself and results in the most amount of vector shapes that you can then play around with and use in your designs. Divide splits selected objects into individual objects created by intersecting paths. Below a comparison of all operations so you visualize it easier:

Since the best way to learn anything is through play, we propose you check out The Boolean Game -  a super fun tool that lets you practice with simple shapes so you can get the hang of these concepts. All the gifs you’ve seen until now were from this nifty little tool.

After playtime, head to Vectornator to bring life to your project with shapes and Boolean operations!

Masks

Masking is another essential function you need to understand in order to create more complex professional work. There are also different principles to it, which we’ll explain below.

Clipping Masks

Clipping masks are the simplest way to mask objects and photos. A clipping mask is a shape that only reveals artwork within its boundaries - in effect, 'cropping' the artwork to the shape of the mask.  So for example, if your object is an apple, once the mask is created the shape underneath gets clipped into the shape on top.

Transparency layer masks

A transparency layer mask is basically a single large graphic that acts as the transparency mask. The light and dark values in the layer (textures are a prime example here) determine the amount of masking applied to your artwork.

Artwork by Seamus Lloyd

Which one is best?

It really boils down to your project’s type.

Let's say you want to achieve a certain shape. One way to think about it is from the perspective of raster images; you can edit individual pixels and create an image mask. And that's about how far the story goes. You cannot use boolean operations with raster-based graphics, and you cannot really edit the resulting shape without using further operations like cropping or applying another mask.

However, if your graphics are vector-based, you can use both masks or boolean operations (or a combination of both) in Vectornator. Both methods will give you newly-created vector shapes, which you can continue editing by manipulating individual points, or by changing their color.

And that’s the beauty of working with vectors: they remain infinitely editable and infinitely scalable.

Images simply cannot compete with that. If you mask with vectors and use the Boolean operations regularly in your workflow, we promise that your productivity will skyrocket!

For a more in-depth analysis of why you should use vectors, refer to this page of our Learning Hub.

Download
Download the PDF version here.
Was this useful?
Like articledislike article
https://www.toptal.com/developers/javascript-minifier/