找回密码
 立即注册
android开发 2022-05-24 102 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
火焰的效果程序,主要思想就是将当前点的上、下、左、右、左上、左下、右上、右下的八个点的颜色值求平均值,然后每帧衰减,将当前像素上移。需要准备一个调色板,其实就是一个颜色数组,保存由黄色到黑色的火焰颜色,用来表示火焰升腾时不同的颜色。

(The main idea of the flame effect program is to average the color values of the eight points above, below, left, right, upper left, lower left, upper right and lower right of the current point, and then attenuate each frame to move the current pixel up. You need to prepare a palette, which is actually a color array to save the flame colors from yellow to black to represent the different colors when the flame rises.)

[下载]16534361111.rar


165341iq52ms2q8t228ahs.jpg


上一篇:Android 自定义泡泡效果源码
下一篇:Andriod 日程管理软件源码