0

How to make the same gradient on two paths under and above a specific shape?

image with path

Layer structure:

  • the first layer contains the first path above
  • group with circle and some stroke layers
  • behind layer that contains the second part behind a circle

The issue is - I have a gradient on the front path and in the behind layer I choose a similar color and fill this out with it. In a result there is small issue with colors. Because paths were split I've got an issue after I export it to SVG like this: enter image description here

Do you have any advice on how to do it? I tried to make a group and choose a gradient for the group but it's not possible because as a result, my circle will be behind or above a specific group.

New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Do not split the gradient path. Hide a part of it with a clipping or opacity mask.An example:

enter image description here

The ring is the top layer. The black piece is inserted and used to hide a part of the ring as inverted clipping mask.

The perfectly fitting mask path can be got with pathfinder subtraction from the copy of the mid-shape.

0

You could use a Clipping Mask...

Draw an extra path around what you want to show on top.

enter image description here

Select this extra path and the shape you want on top and choose Object > Clipping Mask > Make from the menu

enter image description here

The tricky part is you need this clipping path to align with the shape underneath.. so that generally means zooming in and carefully positioning the path.

enter image description here

enter image description here

enter image description here

2
  • Why wouldnt you just copy, and expand copy then shapebuild the mask?
    – joojaa
    Jan 13 at 19:15
  • yeah.. could @joojaa I was just winging it quickly. And explaining those steps is much more for a new user to follow... but you're right :)
    – Scott
    Jan 13 at 20:17

Your Answer

Robert is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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