I want to create a mesh gradient from some random points and colours similar to https://csshero.org/mesher/ .
It's pretty trivial to interpolate between two colours using the method on https://www.alanzucconi.com/2016/01/06/colour-interpolation/ although the issue I have is I don't know how to interpolate between multiple colours in two dimensions like this. Any pseudo-code/python of how to interpolate between colours like this would be appreciated.
You should use the interp2d function from scipy: https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp2d.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.