Creating Dashed and Dotted Lines in Photoshop - TipSquirrel

The more I play around with Photoshop CS6, the more I like all the great new capabilities that have been added to this amazing program. Did you know, that in Photoshop CS6, shape layers are a thing of the past, replaced in their entirety by vector layers? This is a tremendously powerful feature, which we will explore in detail over many tutorials in the future. For today, well focus on a small new feature, but one which solves a big problem that has existed forever in Photoshop how to create a dashed or dotted line.

Since the brush engine was revamp0ed back in Photoshop 7.0, it has been possible to create some versions of dotted lines using some trickery, brush tip shapes, and brush engine presets. Thats way too complicated, and it is now officially kicked to the curb in favor of using the new vector layers in Photoshop CS6. Vectors in Photoshop, much as in its sister program Illustrator, now have a fill and a stroke, and that gives us an amazing amount of flexibility compared to the previous shape layers.

Lets take a look. Well start with this document, and add an oval shape using the ellipse tool. All the settings are at their default at this point:

DashedLines-01

Notice right away the two areas Ive highlighted: The toolbar, which is completely revamped compared to CS5, and the Layers Panel, which now shows the ellipse as a Vector Layer rather than the shape layer with a fill and vector mask as in the previous version.

Well take a close look at the toolbar to begin. The preset picker works the same way as before, and the previous three icons for shape layer, path, and fill pixels are now changed to a dropdown list. Notice that in this example, were using Shape, which is necessary for the next steps to work:

DashedLines-02

From here on, things start to get really good. The next two sections of the toolbar are completely new, and for anyone who has used vector illustration programs, these will be a welcome sight: a Fill and Stroke dropdown list, with a size setting for the stroke. We can drop down the Fill swatch to choose a different solid fill color, a gradient fill, a pattern fill, or we can choose None. Since were going to focus on the stroke in this exercise, well choose None:

DashedLines-03

Now, the shape has no fill or stroke the path is still visible because the layer is selected:

DashedLines-04

Lets add a stroke. Well use a high contrast color so we can see it well. Well drop down the stroke swatch, and choose a yellow color. Well leave the default size of 3 pt selected:

DashedLines-05

Now that we have a stroke, we can start to add special effects to the stroke itself. Moving just to the right, we have the Line Type drop down box. We can see immediately that we have the ability to change to a dashed or dotted line simply by choosing the presets. Heres a dashed line, straight out of the canned preset:

DashedLines-06

Likewise, a dotted line is just a click away:

DashedLines-07

But wait, theres more! (There usually is, in Photoshop). We can change the appearance of the dashed lines, customize and save our own presets. Well skip right over the three drop-down lists for Align, Caps, and Corners, because well find them and more in the More Options dialog click the button at the bottom of the panel and see:

DashedLines-08

Within the Stroke options, we have the same three drop down lists for Align, Caps and Corners except, in this dialog, they have descriptions. This can be a good thing, because the tiny icons in the previous box may be a little hard to discern until youve used them a few times. Here, you get the hint. For example, the Align parameter can be set to align the stroke inside the path (default), centered on the path, or outside the path. The changes are viewable in real time, so as soon as you make the change you can see the results without leaving the dialog:

DashedLines-09

Well change it to Center and move on to the section at the bottom well come back to Caps and Corners in a moment. The bottom section includes a checkbox for Dashed Line when you create presets, this needs to be checked to enable the parameters just underneath. Heres where the magic happens you can create three different dashes and gaps between the dashes for any dashed line. How does this work? Lets change the parameters, like so:

DashedLines-10

This creates a dash of length 4, with a gap of length 2, and another dash of length 1, followed by a gap of two. The pattern then repeats. The result is a pattern of alternating long and short dashes, with rounded ends:

DashedLines-11

Now, you might wonder, the short dashes of length 1 seem to be smaller than the gap of two and the ratio of the longer to shorter dashes isnt quite 4 to 1. To fully understand that, we need to understand how end caps are applied to the dash segments. There are three possible types:

  • Butt: The line ends squarely at the endpoint of the dashed segment.
  • Round: The line ends with a circular shape, the diameter of the stroke, centered on the endpoint (so it extends past the endpoint of the segment).
  • Square The line ends with a square shape, the height of the stroke, but centered on the endpoint (so it extends past the segment).

The only way to see the true size of the Dash and Gap is to change the Caps to a Butt type, like so:

DashedLines-12

Now, you can see the squared off ends, and the dash and gap ratio make more sense. The final parameter is Corners, which can also be one of three settings:

  • Miter: The default tries to square off any corners when the dashed line changes direction
  • Round Rounds the corners off when the dashed line changes direction
  • Bevel chamfers the corner by lopping off a piece at about a 45 degree angle when the dashed line changes direction.

To see this in action, we need to create a vector shape with a corner, such as a Rectangle Heres the default Miter corner:

DashedLines-13

Heres the same shape changed to a Round corner. Note that depending on your document resolution (number of pixels) and the size of the stroke, you may get a somewhat jagged round corner:

DashedLines-14

Finally, heres the same shape with a Bevel corner setting. Again, you may see some jagged edges depending on document resolution:

DashedLines-15

Given these capabilities, we can create any number of unique custom settings for our stroked lines. For example, heres a phantom line type with two long dashes and a short dash:

DashedLines-16

Dont forget to save your presets! Once you click save, the new preset appears in the list of available stroke types. Theres no naming, it is a visual-only list:

DashedLines-18

Customized dashed and dotted strokes now available in Photoshop. Amazing! And dont forget, while weve been looking at applying these strokes to shapes using the shape tools, it works equally well to freeform vector paths you create with the Pen tool.

And Bonus Tip! Dont be afraid to add a Layer Style stroke to a vector stroke, for double stroke goodness, as you can see with the Ampersand-shaped path in the center of this image:

DashedLines-19

Thats all for this tip! I hope you find this information helpful. See you next week!


Creating Dashed and Dotted Lines in Photoshop - TipSquirrel
Mike has been a photographer, artist, educator, and technophile for most of his life. Early in his career, he created technical illustrations and photographs for

Creating Dashed And Dotted Lines In Photoshop Tipsquirrel ...
Creating Dashed and Dotted Lines in Photoshop - TipSquirrel. Mike has been a photographer, artist, educator, and technophile for most of his life.

Dashed Lines in Photoshop | Planet Photoshop
While Photoshop doesnt offer a dashed line option, you can create dashed lines that follow a path! Heres how: Follow the instructions above,

Make a Dotted Line in Photoshop - BittBox
Making a dotted line is easy in Illustrator. You just change it in the stroke palette. Photoshop, on the other hand, is a bit trickier. There is more than one way

Tip: Creating a Dotted and Dashed line in Photoshop and ...
increase the spacing under Brush tip Shape to create a dotted line. 2 Tip: Creating a Dotted and Dashed line in for dashed lines in Photoshop,

How to make a dotted circle in photoshop cs5-Mr How
so that you can make a dotted circle in photoshop cs5 very easily and Creating Dashed and Dotted Lines in Photoshop | TipSquirrel. Vectors in Photoshop,

Dotted lines in photoshop tutorial - PhotoshopCAFE
its always been a challenge to make dotted lines until Photoshop CC. here we have a custom dashed path on our Here is how to make a dotted line,

Tip: Creating a Dotted and Dashed line in Photoshop and Gimp
tip-creating-a-dotted-and-dashed-line a-dotted-and-dashed-line-in-photoshop-and-gimp/ In this tutorial Tim Von Rueden takes a look at creating

Photoshop: Dotted/Dashed Lines Photoshop Tips & Tricks ...
One of the more common questions that I've received is "How can I created a dotted or dashed line in Photoshop well take a look at creating a dashed line

How to make a dashed or dotted line (curved and straight ...
How to make a dashed or dotted line dashed or any kind of non standard line in Photoshop you need to You can make dotted, dashed or any other kind of grungy

Previous
Next Post »