How do I adjust the fill layer so that it changes color based on what it overlays?
I have a file from a professional graphic artist where he has these color dots changing color based on what they're overlaying. They even change the color of the thing they're overlaying as well.

I want to replicate this effect in another illustration but cannot figure out how to do so. Any help would be greatly appreciated! I'm using Illustrator 2020
