I’m trying to emulate this type of stroke:
So far, I’ve only been able to pen over the stroke and try to Minus it off (though I’m a rookie and still don’t understand the whole pathfinder tool completely), but it’s tedious and I’m not that great at it.
Related, if not duplicate:
Different color strokes in Illustrator (the gummi worms)
Easiest way for me is just with a gradient on the stroke… set the middle stops to be in the same location.
Benefits of this method is you simply change the gradient to move the sections. There’s no need to reconfigure a brush or cut out new shapes if you need different sized segments.
It’s also easy to use multiple colors….
Source : Link , Question Author : cintron , Answer Author : Community