interpolateColor()方法

interpolateColor()方法

interpolateColor () 方法  
public static function interpolateColor(fromColor:uint, toColor:uint, progress:Number):uint

语言版本:  ActionScript 3.0
运行时版本:  AIR 1.0 Flash Player 9.0.28.0

从一个颜色值平滑地混合到另一个颜色值。

参数

fromColor:uint — 起始颜色值(0xRRGGBB 或 0xAARRGGBB 格式)。
 
toColor:uint — 结束颜色值(0xRRGGBB 或 0xAARRGGBB 格式)。
 
progress:Number — 过渡的百分比(小数,其中 0 表示开始,1 表示结束)。

返回
uint — 插补的颜色值(0xRRGGBB 或 0xAARRGGBB 格式)。




原文地址:https://www.cnblogs.com/babyhhcsy/p/2874977.html