Skip to content

feature(minimessage): Add color space option to the gradient tag - #1434

Open
mudkipdev wants to merge 1 commit into
PaperMC:main/5from
mudkipdev:feature/gradient-color-spaces
Open

feature(minimessage): Add color space option to the gradient tag#1434
mudkipdev wants to merge 1 commit into
PaperMC:main/5from
mudkipdev:feature/gradient-color-spaces

Conversation

@mudkipdev

Copy link
Copy Markdown

Plain RGB interpolation makes many gradients pass through muddy gray/brown midpoints. This PR adds an optional color space as the first argument to the gradient tag:

<gradient:oklch:red:blue>hello world</gradient>
<gradient:hsv:#ff0000:#0000ff:0.5>phase still works</gradient>

Supported spaces are rgb, hsv, oklab, and oklch.
Intentionally minimal and does not add public API unlike #1063.

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