How do I calculate a random color, thats going to be more or less unique to a specific string? Its true that RGB format of (0-255, 0-255, 0-255) will only allow maximum of 16581375 unique colors, while strings are indefinite.
The string can be random like hello123
or bye456
.
My goal is to show a control (expander) in a almost unique color by text of the header. Because on other list in GUI there is a reference to that expander, so i want to help the user to find that entry quicker.
So I need to get a SolidColorBrush
for background.
Example:
The header of one expander is hello123
and the following expander header is bye456
. So I want to set the background of each header to a (nearly) unique color.