In this example we are going to draw a heart shape. We will end up with something like this.
Once you understand how this works you will be able to use this technique to draw any symmetrical shape you want.
First give yourself a ruler so you can see the middle of your shape or where the reflection will be. To get a ruler hit Apple + R (CTRL + R on Windows) and you will see ruler menus appear at the top and left of the screen. Hover your mouse over the left ruler and then click and drag to place a ruler on the canvas. Then using the pen tool draw your shape. You should end up with something looking like this:
Next we want to mirror the shape. Make sure that your path is selected (use the selection tool if not - shortcut V). Then select the reflect tool (shortcut O). You will see a small blue target icon appear. This is the point at which the reflection will occur. We want the reflection to be on the line so click once on the blue line and the target will move. You should end up with something looking like this:
To make the reflection click hold and drag to the upper left of your path. As you drag hold down SHIFT to constrain the rotation and ALT to copy the shape. If the shape moves to the other side you have forgotten to hold ALT which will copy the shape creating a mirror.
Now for the really tricky bit. Currently we have two separate paths. These are not much use if we want to fill the shape, copy it or use it as a symbol. So we need to join and average the paths together. Averaging means that two end points will be averaged before they are joined. This should make sense when you do this. There is a handy shortcut to join and average at the same time. To do this select the Direct Selection Tool. Select (shortcut A) the end point of your shape. When selected you will see the end point appear as a small blue rectangle. Hold shift and select the end point on the mirrored shape. You should see something like this:
Now hit Apple + SHIFT + ALT + J (Ctrl + Shift + Alt + J on Windows) to average and join the paths. A common mistake will be an error message saying “To join you must select two endpoints…”. This probably means that you have selected other anchor points rather than just the end points. Check there are no other anchor points with blue squares rather than white squares (blue means they are selected and will cause the error.)
If everything has gone to plan you now have a complete, joined path which you can fill, use as a symbol or pattern swatch.
Watch the whole process in the video below
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Build your own Vim statusline
Statuslines in Vim are not hard to create. Making your own means one less dependency in your life.
Custom Vim Bindings in tmux 2.4
tmux 2.4 made a significant change to key bindings. Here is how to support custom keybindings for versions before and after tmux 2.4
Using template files in Vim
Vim templates or skeletons, allow you to specify a template to be used for new files with a certain extension.