Change the color of a line as it crosses a shape.
I am a beginner to illustrator so please dumb it down if possible..
So I am trying to change the color of a line when it crosses a shape. I've tried the color dodge setting in the transparency toolbar and that is the closest I have come to getting the effect I want. The only problem with this setting is that I can't pick the color within the shape. Just to give an idea of what I'm trying to do Ive included a couple screen shots. The first is what I start with the second I used the color dodge effect and is the closest I can get to the effect I'm looking for but I want to choose the color that is inside the rectangle. Is this possible?


