Chapter 3
IN THIS CHAPTER
Editing shapes
Applying fills
Applying borders
Customizing and saving shapes
Using the Pen tool
Discovering Pen tool tips and tricks
You can create your artwork, such as squares, circles, custom shapes, and paths, right in Adobe XD. If you are familiar with Adobe Illustrator, the tools in XD will be relatively easy for you to learn. Keep in mind that you can also create your shapes in Illustrator and copy and paste them right into Adobe XD as well.
In this chapter, you discover how to use the Rectangle, Ellipse, Line, and Pen tools to create custom shapes and paths. These shapes can be used for creating UI such as buttons and menus, as well as custom shapes for creating masks.
You can create a shape such as a rectangle or ellipse simply by selecting the tool from the Tools panel and clicking and dragging where you would like to place the shape on your artboard. Simply by clicking and dragging from the upper-left corner to the lower right, you can create a typical rectangle or oval. Try any of these tips to create rectangles that are more controlled in size:
After you have created the square or circle, you can check and change the size by using the Properties panel. In Figure 3-1, you see an active rectangle and its W (Width) and H (Height), as well as its positioning, which is represented in the X and Y coordinates.
Note: The shape tools are sticky, and the tool will remain selected until you switch to another tool such as the Select tool. Keep this in mind because if you try to move your shape, you may just accidently create another shape.
For this section, you are directed through the steps to create a simple button with a solid fill and some text. You will have the opportunity to learn more about more advanced fills later in this chapter:
Select the Rectangle tool and click and drag to create a rectangle of any size on an artboard.
In this example, we selected the standard iPhone 6 template.
In this section, you add a solid fill color to your shape:
Scroll through the colors by clicking and dragging on the Hue slider. After you have entered the hue color that you like, click a color in the color panel to apply it to your rectangle.
You can save colors that you might use often by clicking the Save Color Swatch plus sign at the bottom of the color picker, shown in Figure 3-2.
You can apply transparency to your fill by using the slider on the right side of the color picker window.
You can leave the corners square or follow either of these next steps to round the corners of the shape:
You can round corners visually by clicking and dragging the corner widgets inside the corners of the rectangles, as shown in Figure 3-3.
Hold down the Alt (Windows) or Option (Mac OS) key and drag one corner radius to make it an independent value.
Now you add the text to the button:
With the word selected, change the properties in the Text area of the Properties panel, as shown in Figure 3-5, to select a font and a type size you like. You can also change the alignment by selecting the Left Align, Center, or Right Align buttons.
You can select your current font size in the Font size textbox and press the arrow up or down to increase or decrease the font size.
A border, also known as a stroke, can be applied to any of your shapes and paths. When you create a border, you select both the width and color.
Both the Fill and the Border have an eyedropper icon positioned off to the right. You can select the Eyedropper tool in the Properties panel and then click on any color located within your current project. This can be helpful when you have imported images that you want to sample colors from, as shown in Figure 3-6, or if you are trying to match controls that were created in a different application.
Adobe XD includes advanced tools that make it simple to create gradients. To create and use a gradient in your project, follow these steps:
Using the Pen tool in Adobe XD is very similar to the experience you would have with the Pen tool in other Adobe applications. In this section, you are provided with simple tips in order for you to create your own custom shapes and paths with the Pen tool. See Chapter 4 in Book 5 for Illustrator for more in-depth features that you can take advantage of with the Pen tool in all the Adobe applications.
If your goal is to create a custom shape without using the Pen tool, you can take advantage of the Object⇒Path menu items.
To use this menu, you create two or more shapes that you would like to unite together (Add), subtract one from another (Subtract), save only the intersection of several shapes (Intersect), exclude the overlap of several shapes (Exclude/Overlap), or convert a shape to a path so that you can edit it more freely using the Select tool (Convert to Path).
See Figure 3-12 for examples of examples of these path selections.
3.133.100.202