Skip to content

Fix TextColor not treating hue 1.0 the same as 0.0#1368

Open
MartinRedheLind wants to merge 1 commit intoPaperMC:main/5from
MartinRedheLind:fix-hsv
Open

Fix TextColor not treating hue 1.0 the same as 0.0#1368
MartinRedheLind wants to merge 1 commit intoPaperMC:main/5from
MartinRedheLind:fix-hsv

Conversation

@MartinRedheLind
Copy link

Passing an HSVLike instance with hue set to 1.0 to TextColor#color returns an incorrect color value with a hue that is off by 60 degrees.

For example: TextColor.color(HSVLike.hsvLike(1.0f, 1.0f, 0.5f)) should yield #7F0000, but actually yields #7F007F.

This pr should address the issue.

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.

1 participant