I want to create something like I have posted in de picture, but I want to create it automatically, since I will be using this style for page numbers. The colour in the white space must be blue and the colour in the blue bar must be white. So, when the blue touches blue, it must turn white.
Does anyone know how to do this? Or how I can solve this in another way?
You can get this with masks (a rectangle on top, with part of the page number clipped off) or with transparency effects (although with these, you may have to try every possible iteraton to get the Magical Combination that will give you this exact result), or make a gradient fill with a really sharp transition.
I prefer not to mess with transparency, and I always have problems with gradients -- getting the angle to stick, getting the right amount of transitions, etc. So in this case I would probably duplicate the page number and use a rectangular mask on the top one.
Thank you! With your direction, google and a bit of fiddling around, I managed to pull this of