4

I'm trying to create a slanted dashed line in Adobe Illustrator, something like this:

enter image description here

I've tried to create a dashed line and then apply shear to it, but for some reason when I do the shear nothing happens. I'm using Adobe Illustrator from the Creative Cloud.

Any suggestions? Maybe another way to do the slanted dashes?

Thank you !

2
  • 1
    Can you explain a bit more? I don't understand what the issue is. You can merely create dashes for any path using the Stroke Panel
    – Scott
    Commented May 3, 2018 at 14:53
  • I need the dashes to be slanted, at an angle. I've created vertical dashes but can't shear them to the desired angle Commented May 3, 2018 at 14:55

5 Answers 5

7

Draw a path and set the dashes correctly...

enter image description here

Then choose Object > Expand Appearance, Then Object > Expand

You can then shear the shapes however you need.

enter image description here

The great thing about using dashes this way is you can use the Width Tool and the Stroke Profile to create bordering shapes with the dashes if necessary:

enter image description here

1
  • Works great !!! Didn't know that the expand thing is needed for this to work Commented May 3, 2018 at 15:24
7

Create a vertical line and apply a 30°- 60° shear to it (depending how slanted you'd like it)

Then go to Effects → Distort and Transform → Transform and set it to move horizontally and add in the number of copies you'd like. enter image description here

If you need to edit the lines individually later on, you can go to Object → Expand Appearance

4

Not difficult: for this you create a custom brush - you create the rectangles you've posted as vector, and select them, and go to Brushes>New Brush, choose Art Brush, set the Art Brush preferences you prefer for corners, recolouring etc, et viola! You've just made your own brush you can apply to any vector stroke.

Here I've quickly roughed the angled strokes from your image

enter image description here

I've selected them and gone to the Brush palette, and chosen New Brush

enter image description here

In the popup dialogue I've chosen Art Brush

enter image description here

Set the preferences I want for corners, recolour etc

enter image description here

And applied that new brush to a bezier vector - done!

enter image description here

Hope this helps.

EDIT: OH and BTW - the Stroke Width tool (and / or tablet pen pressure) still work perfectly with this method, allowing for all kinds of interesting effects - sort of 90's tribal tattoo style!

enter image description here

3

Create a pattern brush from a module made with 4 slanted rectangles.

patternbrush

1

Begin by creating a rectangle and using the pen or line tool create a line from the top of the rectangle to the bottom at an angle.

enter image description here

Next using the move tool while holding down Alt drag and copy the line.

enter image description here

Then using the keyboard shortcut Ctrl+D or going through the menu. Transform again until the lines fill up the rectangle.

enter image description here

Then you just move the rectangle to the top of the layer stack and make it a clipping mask using Ctrl+7

enter image description here


For a better look at sheering the stroke.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.