Open Bertie690 opened 2 months ago
This is, like many things, more complicated than you'd think. Diffing colors is not as simple as comparing the RGB values. There are libraries to diff colors based on how we perceive them, but I haven't looked in much detail. You also need to ensure the player colors don't disappear in the scanner.
Will have to look into it. I'm thinking we would probably also have to run color diff for the default scanner colors as well (ie no overly similar red/black/green player colors).
Perhaps hitting the color box in the player report tab would let you enter a hex code to change your player's assigned color? Could probably give an error message and prompt re-entry (similar to incorrect starting game parameters) if the color is too similar to another player's chosen color. (I'd say ~75 total shades of difference is enough to make them visually distinctive to the naked eye.)