AS3 - 为图像添加棕褐色效果

时间:2011-10-30 19:30:15

标签: actionscript-3 flex colors

如何为图像添加棕褐色(深棕色 - 灰色)色彩效果?可以通过以下功能完成吗?

import fl.motion.AdjustColor;
import flash.filters.ColorMatrixFilter;
//
var colorFilter:AdjustColor = new AdjustColor();
var mColorMatrix:ColorMatrixFilter;
var mMatrix:Array = [];

function adjustColors(e:Event=null):void{

    colorFilter.brightness = 10
    colorFilter.contrast =  20
    colorFilter.saturation =  40
    colorFilter.hue =  30

    mMatrix = colorFilter.CalculateFinalFlatArray();
    mColorMatrix = new ColorMatrixFilter(mMatrix);
 //

    mymc.filters = [mColorMatrix];

}

由于

0 个答案:

没有答案