找回密码
 立即注册
android开发 2022-06-13 65 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
前两天写了一个水纹效果程序。有水就应该有火。所以这里有一个火焰效果程序。 ,右下八点的颜色值取平均值,然后每帧衰减一次,将当前像素上移。你需要准备一个调色板,它实际上是一个颜色数组,把火焰颜色从黄色保存到黑色,用来代表火焰升起时的不同颜色。

(I wrote a water texture effect program two days ago. There should be fire if there is water. So here is a flame effect program, The color values of the lower right eight points are averaged, and then attenuated once per frame to move the current pixel up. You need to prepare a palette, which is actually an array of colors. It saves the flame colors from yellow to black to represent the different colors when the flame rises.)

[下载]09043614013.rar


090433kt2stszwj2s2usgv.jpg
090433ltmevyjzskax44y3.jpg


上一篇:Android应用源码之换肤
下一篇:Android应用源码之获取Gps信息的程序源码