KyoriPowered / adventure

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

Gradient API (v2) #1063

Open thiccaxe opened 2 months ago

thiccaxe commented 2 months ago

Addresses some of the main concerns of my previous rendition, mainly separating the concept of a gradient and the interpolation of colors.

By not requiring colors to be a TextColor the API interface is greatly simplified (far less conversions from rgb and back). However, this requires an additional step on the user's end to convert from whatever color space they are using (say, HSV, or perhaps, (ok)LAB)

I feel that this interface is more versatile and easier for users to extend on their end.