XD has simple but very powerful tools, such as the new pen tool. Learn how to create customs vector paths, adding and removing anchor points. Learn to draw precise paths with alignment hints as the design is being created.
- [Tutor] The pen tool in XD is simple but very powerful. So let's select that, just like any other pen tool, you can click and drag. To start creating your path. And then in order to add an anchor point, all I gotta do is hover the existing path, click there and get a new anchor point. Then I can click and move it around. If I need to change the color of this guy, I can go to the Property Inspector, play with the border, play with the size here of my border.
And I can keep playing with this. If I hit escape, I commit and I have my path here, and I can move this around. If I double click I still have access to the anchor point. And the nice thing here is, if I need to get rid of this handles, I double click and they go away. If I click back they come back. I can use the handles to make this move. But if I don't want that smooth, I can hold the option key and then just change one side select another one, carry them back, make it smooth.
So that's how you can use the pen tool to create some path like that. Another thing that's useful here is if you click with your pen tool and drag, click again, click again, click again, let's say right here and I get close to that. I can see it gives me hint, that that's the perfect side where I'll get alignment. So very easily I can close that path and get alignment.
So the pen tool gives me the ability to add anchor points and as I hover areas close to existing anchor points. It gives me the ability to snap to that so I can draw perfect parts with the pen tool. On this art board, if I have the square grid or even the layer grid, let's do 64 here, and I picked the pen tool to start drawing. Now my pen tool will snap to this grid. So now I can draw for example a symbol like that and it helps me get to that perfect scenario.
Then I can play with the fill here and adjust where it's positioned, that's how you can play with the pen tool, with the grid selected. The last thing I want to show here is that, if you have let's say this guy right here and I want to create a cool chart. One thing that I can do is, I can double click here at some anchor point to this guy. Let's say this goes here.
Something went wow and then he grew and then he went back. And then I can double click to create the perfect handles here. So it's almost like a nice chart, then I can let's say pick that pink, that's right there. I'll play with the border like that and if you notice one thing as soon as I commit, what outside of the art board doesn't get displayed. So it's a nice way of creating this scenario.
And then let's do less than this to make it nicer. And then for the fill, what if we pick a gradient that will go from, let's say that same pink that I have there but maybe a little darker, to the same pink, but now this would be transparent. And I can play with this like this. So look at that I'm able to play with this, maybe I can even make this more transparent.
So it's almost like a nice chart, that has a lot of gradient and a lot of nice effects if I copy and paste and flip this. You can see I can start to get nice results and play with that in x is the anchor point double click to get rid of that. And maybe this will have a different color, so let's pick that so maybe this will be a blue, and this would go from that blue to that blue.
So again, I'm kind of creating a nice scenario here just by playing with gradient and stroke. The other thing you can do here is, if you have let's say a circle and you play with the size of your stroke. You can play with dash. Let's say you wanna add dash. And I can have more or less and I can play with that more and more and more up into a point that I have something like that.
Then I can have different end caps here, and this is a very fun exercise where I can have not only dash but I can also have this rounded corner here. For regular dash I just select that and I add how many I want like that. And I can play with the end cap to create different scenarios. So this is how you play with a pen tool and with strokes in XD.
- Understanding all tools in Design mode
- Bringing files for Photoshop, Illustrator, and Sketch
- Working with text, vectors, image fills, and masks
- Repeating elements with the powerful Repeat Grid tool
- Resizing multiple elements with responsive resize
- Using the new Assets panel to manage symbols, colors, and character styles
- Sharing symbols across files, with text and image overrides
- Creating and consuming bitmaps and vectors from CC Libraries
- Extending the power of XD using great plugins