Hey guys,
First post here. I wanted to share with you a simple algorithm which I have been using since awhile for my Shaders and VFX. The algorithm is based on a theory from a painter known as Gurney, and is performant for Realtime graphics. The basic idea is to generate key colors and deriving the rest of the palette from lerping these key colors. I already explained the whole thing on medium so have a look at that if you are interested, and let me know if you can think of improvements to the algorithm https://link.medium.com/7Pe7frHduU
cheers.