In this article, I’ll show you how to use Radial Basis Function (RBF) interpolation to generate seamless gradients from just a set of colored points. This approach is portable, flexible, and simple to implement.
Tbh, I tried several different functions, but nothing worked better than inverse quadric function. Though, I'm not sure if I tried anything without decay