制作火焰文字
运行时文字周围有火焰闪动,颇为好看。
基本思想:
对于给定的文字,其周围的三原色分量值往外依次减去一个随机量
(该随机量随时间改变,造成动画效果),直到减到0为止。在文
字周围即可看到比文字颜色淡的火焰。如果忽略蓝色分量,并使黄
色分量减的快一些,即可得到真实的火焰效果。
-text characters running around a flame flicker, rather pretty. Basic idea : For a given language, around magenta-money overseas minus a random order quantity (the amount of random change with the times. create animation effects), until reduced to 0 so far. In the text can be seen around the text color than the desalination of flame. If neglected blue, yellow-minus enable the faster, can be real flame effect.
本程序可以在Windows 98/2000/XP/2003平台下运行,可在VC6.0或.NET中调试。调试前需要安装Microsoft DirectX 9.0。
-This procedure can be run under Windows 98/2000/XP/2003 platform can VC6.0 or. NET debug. Debugging before the need to install Microsoft DirectX 9.0.