Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24-bit user colors #59

Merged
merged 2 commits into from
Oct 25, 2023
Merged

24-bit user colors #59

merged 2 commits into from
Oct 25, 2023

Conversation

hpfxd
Copy link
Contributor

@hpfxd hpfxd commented Oct 20, 2023

Since Minecraft 1.16, chat messages support full 24-bit RGB color, instead of only the previous 16 predefined colors (Formatting class). This patch introduces the capability for the mod to take advantage of this feature and show messages from Twitch with the precise color instead of rounding it to the nearest predefined color.

Resolves #21

hpfxd added 2 commits October 19, 2023 23:35
In Minecraft 1.16, chat messages support full 24-bit RGB color, instead of only
the previous 16 predefined colors. This patch introduces the capability for the
mod to take advantage of this feature and show messages from Twitch with the
prescise color instead of rounding it to the nearest predefined color.
This patch changes the default user color calculation to use the same colors
as Twitch does in the official web client.

Source: https://discuss.dev.twitch.tv/t/default-user-color-in-chat/385/2
Copy link
Owner

@pblop pblop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks!

@pblop pblop merged commit 0784127 into pblop:main Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: 24bit color
2 participants