kingBook

导航

调整颜色

var adjustColor:AdjustColor = new AdjustColor();
adjustColor.brightness = 0;// 亮度
adjustColor.contrast = 0;//对比度
adjustColor.saturation = 0;//饱和度
adjustColor.hue = 0// 色相偏移
var colorFilter:ColorMatrixFilter = new ColorMatrixFilter(adjustColor.CalculateFinalFlatArray());
_mc.filters = [colorFilter];

fl包:链接:http://pan.baidu.com/s/1mihxOgw 密码:kxn1

private function clearColor(mc:MovieClip):void{
	var adjustColor:AdjustColor = new AdjustColor();
	adjustColor.brightness = 0;// 亮度
	adjustColor.contrast = 0;//对比度
	adjustColor.saturation = -100;//饱和度
	adjustColor.hue = 0// 色相偏移
	var colorFilter:ColorMatrixFilter = new ColorMatrixFilter(adjustColor.CalculateFinalFlatArray());
	mc.filters = [colorFilter];
}

posted on 2019-04-16 14:21  kingBook  阅读(112)  评论(0编辑  收藏  举报