In this quick example of using pattern swatches we are going to use a t-shirt design. Pattern swatches allow you to quickly fill shapes with patterns and even illustrations. I’ve drawn a simple t-shirt on the canvas using the pen tool.
To create a pattern swatch you simply draw your pattern or shape as you normally would on another part of the canvas.
Draw two rectangles on the canvas and then fill them with two different colours. I’ve chosen blue and white. Then select both shapes and drag them into the Swatches box.
If you can’t see the swatches box go to Window > Swatches. You should see the pattern that you dragged into the Swatches box now available. To use the pattern select the Object you want to fill using the selection tool (v) and then click on the pattern you just dragged in. If everything went well you should now have a striped t-shirt.
The real power of this feature is that you can quickly fill shapes or objects with illustrations. Let’s say we are going to a 60’s flower power party and we want to design a t-shirt for the occassion. Using Pattern Swatches we can draw a flower, drag it into the swatches and then quickly fill the t-shirt. Easy.
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.