This is probably the case. I plan to use php to generate an image with text. The text color is random and the background color is random. If this is the case, there is a possibility that the text color is similar to the background color and difficult to identify, so I would like to ask if there is any way to determine... this is probably the case. I plan to use php to generate an image with text. The text color is random and the background color is random. If this is the case, there is a possibility that the text color is similar to the background color and difficult to identify, so I would like to ask if there is any way to determine the color of the text, you can find a background color to ensure that these two colors will not be confused together?
Reply content:
This is probably the case. I plan to use php to generate an image with text. The text color is random and the background color is random. If this is the case, there is a possibility that the text color is similar to the background color and difficult to identify, so I would like to ask if there is any way to determine the color of the text, you can find a background color to ensure that these two colors will not be confused together?
The simplest is to add a black translucent 50% or less on the background of the word. See all the color combinations.