Publishers of technology books, eBooks, and videos for creative people

Home > Articles

This chapter is from the book

Drawing with the Pen tool

Another way to create artwork is to use the Pen tool in Adobe XD. With the Pen tool, you can create freeform and more precise artwork, and edit existing shapes. In this section, you’ll explore the Pen tool by drawing artwork using straight and curved lines, and then you’ll learn how to edit shapes with both the Pen and Select tools. First, you’ll open an existing file and begin drawing some icons using the Pen tool.

  1. Choose File > Open From Your Computer (macOS), or click the menu icon (menu_icon.jpg) in the upper-left corner of the application window and choose Open From Your Computer (Windows). Locate the file named Drawing.xd, which is in the Lessons > Lesson04 folder that you copied onto your hard disk. Select the file and click Open.

    This document has three icons you’ll create. You’ll use templates provided for tracing paths, and then you can practice on your own.

  2. In the Layers panel, double-click the artboard icon (artboard_icon.jpg) to the left of the artboard name “Icon 1” to fit the artboard in the document window.

Drawing straight lines

You may have some experience with the Pen tool in an application like Illustrator or Photoshop. The Pen tool in Adobe XD is similar, but in XD creating paths with the Pen tool may seem easier and more intuitive. To start drawing with the Pen tool in Adobe XD, you’ll create an icon in the shape of a house.

  1. Select the Pen tool (pen-tool.jpg) in the toolbar. Move the pointer over point 1 and click to create an anchor point; then release the mouse button. Make sure you have released the mouse button and move the pointer away from the point you just created, and you’ll see a line connecting the first point and the pointer, no matter where you move the pointer. That line gives you a preview of the next line segment you will draw.

    Later, as you create curved paths, it will make drawing them easier because you can preview what the path will look like.

  2. Move the pointer over point 2, above point 1. When the pointer is vertically aligned with the first point, the preview line will turn aqua to show that it’s aligned. Click point 2 to create another anchor point.

    You just created a path. A simple path is composed of two anchor points and a line segment connecting those anchor points. You use the anchor points to control the direction, length, and curve of the line segment.

  3. Continue clicking points 3, 4, and 5 to create a house shape, releasing the mouse button every time you click to create another anchor point.

    The aqua snap guides are very useful for aligning anchor points you create to existing anchor points. Notice that only the last anchor point is filled (not hollow like the rest of the anchor points), indicating that it is selected.

  4. Click the first anchor point you created to close the path and stop drawing.

    After closing a path, the Select tool (sp_selectiontool_lg_n.jpg) is automatically selected. Next, you’ll create a path that will be the roof of the house. This will be an open path, not closed.

  5. Select the Pen tool and move the pointer over point 6. Move the pointer around and you most likely will see aqua snap guides. Press and hold Command (macOS) or Ctrl (Windows) and move the pointer around. You will no longer see the aqua alignment guides since dragging with the Command (macOS) or Ctrl (Windows) key down temporarily disables the alignment guides. With the key still held down, click point 6.

  6. With the key held down, click to add a point at 7. Release the key and click point 8 to create a roof.

    Releasing the Command (macOS) or Ctrl (Windows) key before adding point 8 allowed the alignment guides to work again.

  7. Press the Esc key to stop drawing the path, which also automatically switches to the Select tool.

    If you want to practice without the template, try tracing the same shape below the template in the area labeled Practice.

Drawing curves

Along with creating straight paths with the Pen tool, you can also draw curves. As you draw, you create a line called a path. A path is made up of one or more straight or curved segments. The beginning and end of each segment are marked by anchor points, which work like pins holding a wire in place.

A path can be closed (for example, a circle) or open, with distinct endpoints (for example, a wavy line). You change the shape of a path by dragging its anchor points or the direction points at the end of direction lines (together, direction points and direction lines are called direction handles) that appear at anchor points.

Creating curves with the Pen tool can be tricky, but with some practice you’ll soon be on your way. Next, you’ll create a curved path. To do this, you’ll drag away from a point you create.

  1. Press Command+Shift+A (macOS) or Ctrl+Shift+A (Windows) to deselect all.

  2. Double-click the artboard icon (artboard_icon.jpg) to the left of the artboard name “Icon 2” in the Layers panel to fit the artboard in the document window.

  3. Select the Pen tool (pen-tool.jpg) in the toolbar. Move the pointer over the gray point labeled 1. Press and drag to the right, to the blue dot, to create a direction line.

    The angle and length of direction lines determine the shape and size of the curve. As you drag away from a point, there are typically two direction handles (except for on a starting point), one before the point and one after it. Direction lines move together by default and only show when you’re editing paths.

  4. Move the pointer over point 2; then press and drag to the right. After you begin dragging, press the Shift key to constrain the movement to a multiple of 15 degrees. When you reach the blue dot, release the mouse button and then the key to create direction lines.

    Next, you’ll create a corner point with no direction lines, and then go back and change it to a smooth point.

  5. Move the pointer over point 3. Click and release without dragging to create a corner point with no direction lines.

  6. Move the pointer over point 4, and press and drag to the right. After you start dragging, press the Shift key. When you reach the blue dot, release the mouse button and then the key to create a direction line.

  7. Move the pointer over the anchor point at 3. When the point turns blue and the pointer changes (arrow.jpg), double-click to convert the point to a smooth point with direction handles you can edit.

    While drawing with the Pen tool in Adobe XD, you can always edit the path you are currently drawing without switching tools.

  8. Move the mouse pointer over point 5 and drag to the right. As you drag, press the Shift key. When you reach the blue dot, release the mouse button and then the key to create a direction line.

  9. Move the mouse pointer over point 6 and drag to the right. As you drag, press the Shift key. When you reach the blue dot, release the mouse button and then the key to create a direction line.

  10. Press the Esc key to stop drawing and automatically switch to the Select tool.

  11. Change Border Size to 3 in the Property Inspector. Press Return or Enter.

  12. With the Select tool selected, click in a blank area of the gray pasteboard to deselect the last path.

    If you want to practice without the template, try tracing the same shape below the template in the area labeled Practice.

Changing path direction

The last icon you will create is a cloud. The path will contain an anchor point whose direction lines are “split.” This means that a curve can be followed by a straight path, for instance.

  1. Double-click the artboard icon (artboard_icon.jpg) to the left of the artboard named Icon 3 in the Layers panel to fit the artboard in the document window. To zoom in a bit further, press Command and + (macOS) or Ctrl and + (Windows).

  2. Select the Pen tool (pen-tool.jpg) in the toolbar. Press and drag from point 1 to the left, to the blue dot, to create a direction line. Release the mouse button.

  3. Move the mouse pointer over point 2 and drag up to the blue dot to create a direction line.

    Now you need the next part of the path to switch directions at the anchor point and create another curve. You will split the direction lines to convert a smooth point to a corner point. This involves a keyboard modifier.

  4. Move the pointer over point 3 and drag to the gold dot to create a direction line. Release the mouse button.

  5. Press the Option (macOS) or Alt (Windows) key and drag the end of the direction line to the blue dot. Release the mouse button and then the key.

    The direction lines are now split, which means you can move them independently of each other. The trailing direction line controls the curve of the path leading up to the anchor point, and the leading direction line controls the curve of the path after the anchor point.

  6. Move the mouse pointer over point 4 and drag to the right, to the blue dot, to continue drawing the path.

    When it comes to smooth points (curved), you’ll find that you spend a lot of time focusing on the path segment that is created when you place a new anchor point. Remember, by default there are two direction lines for a point. The previous direction line controls the shape of the previous segment.

  7. Move the pointer over point 5 and drag to the gold dot to create a direction line. When the path between points 4 and 5 looks good, release the mouse button.

  8. Press the Option (macOS) or Alt (Windows) key and drag the end of the direction line to the blue dot. Release the mouse button and then the key.

  9. Move the mouse pointer over point 6 and drag down, to the blue dot, to continue drawing the path.

  10. Move the mouse pointer over point 7 and drag to the left, to the blue dot, to continue drawing the path.

  11. Move the mouse pointer over point 1 and click to close the cloud path.

    If you want to practice without the template, try tracing the same shape below the template in the area labeled Practice.

  12. Deselect the Border option in the Property Inspector.

  13. Click the Fill color, and in the color picker change the Hex value to an orange-red (#FF491E). You may need to make sure that Hex is chosen from the menu in the lower left corner of the color picker first.

Editing artwork with the Pen tool

In Adobe XD, you can edit shapes and paths as you are drawing vector artwork or after the artwork is created. In the next few exercises, you’ll focus on editing shapes using Path Edit mode.

  1. Press Command+Shift+A (macOS) or Ctrl+Shift+A (Windows) to deselect all.

  2. Double-click the artboard icon (artboard_icon.jpg) to the left of the House artboard in the Layers panel to fit the artboard in the document window.

  3. With the Select tool (sp_selectiontool_lg_n.jpg) selected, double-click the top rectangle shape to enter Path Edit mode.

  4. Move the pointer over the top border of the path, as you see in the first part of the following figure. When the Pen tool icon (pen-start.jpg) appears, click to create a new anchor point and release the mouse button.

    When in Path Editing mode, you don’t have to switch tools from the Select tool to add, delete, and edit points.

  5. Drag the anchor point up.

  6. Double-click the line above the house shape to enter Path Editing mode. Move the pointer over the path, and when you see the Pen tool icon, click to add a new anchor point. See the first part of the following figure.

  7. Drag that same anchor point up a bit. See the second part of the following figure.

  8. Press the Esc key to exit Path Edit mode.

    At this point, the anchor points aren’t visible, and you cannot edit them; only the bounding box of the shape is visible.

  9. Drag the path down, above the house icon. See the last part of the following figure.

    To finish the house artwork, you’ll edit the rectangle below the path to look like a curving sidewalk.

  10. Double-click the rectangle below the house shape to enter Path Editing mode.

  11. Drag the top two anchor points on the selected shapes closer together.

  12. Move the pointer over the lower-left anchor point and double-click to convert it to a smooth point. The path at that anchor should now be a curve.

  13. Click the end of the direction handle pointing down. Press Delete or Backspace to remove it. The path on that side of the anchor point is now straight.

  14. Drag the remaining direction handle up and to the right to curve the path.

  15. Repeat steps 12–14 on the anchor point in the lower-right corner of the same shape.

Copying the cloud icon

Next, you’ll copy the cloud icon you created to the Travel_Design.xd document.

  1. Press Command+0 (macOS) or Ctrl+0 (Windows) to zoom out.

  2. With the Select tool selected, right-click the cloud icon and choose Copy.

  3. To close and save the Drawing document, choose File > Close (macOS) or click the X in the upper-right corner (Windows).

    You should be back in the Travel_Design.xd document.

  4. Right-click the Icons artboard and choose Paste to paste the cloud icon.

  5. Drag the icons around on the artboard so they are more evenly spaced. That will make it a little easier to select them later. You may want to zoom in to the artboard.

  6. Press Command+0 (macOS) or Ctrl+0 (Windows) to see everything, if necessary.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020