ConvolutionFilter Demo : ConvolutionFilter : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » ConvolutionFilter »

 

ConvolutionFilter Demo


 
package{
  import flash.display.Sprite;
  import flash.filters.*;
  public class Main extends Sprite{
    public function Main(){
        var box:Sprite = new Sprite(  );
        box.graphics.lineStyle(  );
        box.graphics.beginFill(0xFFFFFF);
        box.graphics.drawRect(00100100);
        box.graphics.endFill(  );
        var boxShadow:Sprite = new Sprite(  );
        boxShadow.graphics.lineStyle(  );
        boxShadow.graphics.beginFill(0xFFFFFF);
        boxShadow.graphics.drawRect(00100100);
        boxShadow.graphics.endFill(  );
        addChild(boxShadow);
        addChild(box);
        box.filters = [new GlowFilter(  )];
        boxShadow.filters = [new ConvolutionFilter(33[000010000])];
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» ConvolutionFilter