Skip to main content
marciam-greeenthum
Participant
January 25, 2018
Answered

Changing text color automatically

  • January 25, 2018
  • 3 replies
  • 1276 views

I have a two-color background (black and white) and would like my text to automatically change to the opposite color as it goes over the two-color background. Is there a way to do this?

    This topic has been closed for replies.
    Correct answer Laubender

    Hi together,

    here is how I would do it:

    Three elements stacked.

    From top to bottom:

    1. Rectangle filled with color 100c 100m 100y 0k and effect Difference applied to Object

    2. Text frame with text color [Black]

    3. Rectangle filled with [Paper]

    Important Notes:

    1. The rectangle with the "Black" appearance ( it is not colored in [Black] !! ) must be on top of the text frame.

    2. With this stacking design and the difference effect applied you cannot have a neutral rich black for the black rectangle. It would be either:

    100 k

    or

    100c 100m 100y

    3. The rectangle filled with [Paper] must be in the background if you want 100 K with the black rectangle.

    It must be color [Paper]. Do not use 0c 0m 0y 0k . If you want the not neutral rich black you must remove the rectangle filled with [Paper].

    Regards,
    Uwe

    3 replies

    Participating Frequently
    January 25, 2018

    My solution is less automatic and only a solution for text, that will not be changed afterwards. On the other hand I am flexible when it comes to change the colour of either the text or the box.

    1. create two boxes in the desired colors

    2. create a textframe and fill with the text.

    3. cut the textframe, select one of the boxes and paste inside

    4. paste the textframe in place again, change the textcolor, if needed, cut the textbook and place into the other box.

    here my former version with changed text and box color:

    marciam-greeenthum
    Participant
    January 25, 2018

    how is that done?

    LaubenderCommunity ExpertCorrect answer
    Community Expert
    January 25, 2018

    Hi together,

    here is how I would do it:

    Three elements stacked.

    From top to bottom:

    1. Rectangle filled with color 100c 100m 100y 0k and effect Difference applied to Object

    2. Text frame with text color [Black]

    3. Rectangle filled with [Paper]

    Important Notes:

    1. The rectangle with the "Black" appearance ( it is not colored in [Black] !! ) must be on top of the text frame.

    2. With this stacking design and the difference effect applied you cannot have a neutral rich black for the black rectangle. It would be either:

    100 k

    or

    100c 100m 100y

    3. The rectangle filled with [Paper] must be in the background if you want 100 K with the black rectangle.

    It must be color [Paper]. Do not use 0c 0m 0y 0k . If you want the not neutral rich black you must remove the rectangle filled with [Paper].

    Regards,
    Uwe

    marciam-greeenthum
    Participant
    January 25, 2018

    This has  been very helpful!  What are the guiding principles if I want to use a different dark color in the first (top) rectangle (something other than black)?

    Participating Frequently
    January 25, 2018

    Like that: