KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
706 stars 107 forks source link

Add Gradient API #937

Closed thiccaxe closed 6 months ago

thiccaxe commented 1 year ago

closes #928

thiccaxe commented 1 year ago
thiccaxe commented 6 months ago

decided to rework this in https://github.com/thiccaxe/adventure-gradient

Resolves the main concern in

Idk if it's just me, but it seems weird to have interpolation methods on the gradient? I don't really have an better API design but something about that feels off to me. Like, they are just util methods and can be used for other stuff, its a bit weird to tie them to the concept of a gradient?

Now interpolation is kept separate from the gradient business. No need for extra implementations per-gradient type.