Make the lines slect them all or make a group and the go to Envelope Distort>Make with Mesh or Make with Warp
Now if you don't want gaps of any kind then you are either limited by the curves you create with the mesh or you make on of the colors a rectangle that is behind the other color which ill be the strokes.
Also use your shape as a guide then use it as a clipping mask once you have the mesh correct to your liking.
Thanks -- this is very helpful - and away from my iMac at the moment so will try later on. Didn't quite understand everything you said though. To play it back:
- create the lines / pattern fill
- apply envelope distort>mesh and then manipulate the mesh to get the lines I want
- use clipping mask to fit to original shape
Is that right?
Note: If you use a pattern, make sure you choose "Distort Patterns" in the "Envelope Distort Options".
Also, the background could be set as a different fill in the Appearance Panel, making it easy to update.
You're kind of approaching it backwards.
Essentially, you want to be able to start with a rectangular piece of striped fabric, and then "drape" it. So do that; draw your initial piece of fabric, and then drape it. Said another way...
You want the stripes' distortion to be determined by the final outer shape. So it's working backward to draw the final shape and then fill it with stripes.
So don't apply the Pattern Fill to a path already drawn in the final shape; apply the Pattern Fill to a simple rectangle (thereby creating your piece of "fabric." Then apply a 1 row, 1 column Mesh Envelope to it (thereby making your "fabric" moldable). Then shape the Envelope.
Just as when drawing efficient and supple paths, keep things as economical as possible. It's far easier to keep control of fewer meshPoints than many. Create mesh cells only as they are actually needed.
If I have a pattern-filled object, after converting to a 1 column, 1 row gradient mesh, the pattern disappears. How did you make the pattern stay when your object was converted to a gradient mesh?
Thank-you all. This is great
Our posts must have crossed each other. Thanks for the further explanation! It's working perfectly now. Very clever technique.