简体   繁体   English

如何生成网格渐变?

[英]How do I generate a mesh gradient?

I want to create a mesh gradient from some random points and colours similar to https://csshero.org/mesher/ .我想从一些类似于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.任何关于如何在这样的颜色之间进行插值的伪代码/python 将不胜感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM