MiraWaNeko / DiscordIntegration

Communicate between Minecraft and Discord
https://discordintegration.net
GNU Affero General Public License v3.0
88 stars 43 forks source link

[Suggestion] Option for different roles on discord to have different colours in MC chat #117

Closed SpookyFence closed 5 years ago

Mijago commented 6 years ago

Well, implementing the default colors should not be that difficult. But how to find the color to be used for custom colors (as one can select any color for discord roles)?

We could use something like this to find the nearest color (the palette would hold every Minecraft color and return the MC-colorcode of it) and then add the color to the argument list as {USERCOLOR} or something similar.

Mijago commented 6 years ago

I tested it with RGB color space, works often, but mixes some colors up (as they may be closer together for the computer, but not for the human eye).

To do this correctly, we need to use a different color space than RGB. CIELAB would suffice, i guess, but I do not think adding it only for this feature is worth it.

Any input or other ideas?