: Connecting multicoloured lines in Illustrator The screenshot here shows my problem. I'm trying to draw a multicoloured line. Its not a straight line, it curves a lot and irregularly. To make
The screenshot here shows my problem.
I'm trying to draw a multicoloured line. Its not a straight line, it curves a lot and irregularly. To make this I've set up a number of different lines and set them overlapping each other. Which...sort of works. Though it gives the problem on the left, I have to very exactly manually get things just right or else I get issues like the too small white on the left.
To solve this I tried to join the lines... but this gives the problem on the right.
Part of my line needs to be curved, but the white rectangle inside the line should have a square edge.
The curve itself has also became distorted.
What is the 'correct' way to draw a multicoloured line like this, ensuring its internal segments remain square and the curves do not alter when I join them?
More posts by @Gretchen549
1 Comments
Sorted by latest first Latest Oldest Best
Use the appearance panel to apply two strokes to the same path. The bottom stroke can be a solid colour and then the stroke on top needs to be a dashed line. Like this:
That way you can adjust colours, size of dashes and change the shape of the line easily.
To add round end caps, you can use a very similar method. The solid stroke has the rounded end caps, while the dashed stroke has square end caps. There are a couple of things to adjust to make this look right, as highlighted in the following image:
By default, the two ends of the line / curve won't look the same, but by tweaking the highlighted value by tiny amounts, you can even them up.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.