Skip to content

Conversation

@thiccaxe
Copy link

@thiccaxe thiccaxe commented Apr 5, 2024

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.

  • gradient API
  • update minimessage to use this API
    • gradients
      • stops?
    • rainbows
  • color spaces
    • RGB
    • HSV (need to verify implementation)
    • OkLab
    • OkLCH
  • tests
  • gradient with stops
  • RGB
  • HSV
  • OKLAB
  • OKLCH
  • minimessage

POC - some code untested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants