Illustrator different color stroke


Is it possible to paint only inside a stroke on illustrator? what i actually want to do is paint the same stroke with different colors in diferent segments of it but i can't do it...

Also... I've seen some tutorials that include editing a gradient but that would be very complicated and so would be to make a new stroke over this one, I just hope theres an easyer way XD

Edit per comment:

thats cool but not really what im looking for, what i want is lets say my stroke has the shape of a burger i want part of i to be bread color and part of it to be meat color... not one stroke over the other... i want something like this, imagine the jelly worm is my stroke:

enter image description here

10/31/2013 2:59:00 AM

Simply apply the gradient to the stroke and adjust the options ....

stroke grad

Only possible in Illustrator CS6 or newer.

Make your own worms...... :)


Or the burger shape....


A gradient is the only way to have more than one color assigned to a single stroke. You can use the Appearance Panel to stack strokes of varying colors, but if you want one stroke to change mid-stream, so to speak, you must use a gradient.

10/31/2013 10:08:00 PM