熱門文章

Ⓒegret.DropShadowFilter 用法

用陰影效果做發光效果

let s1 = new egret.Shape();
s1.graphics.beginFill(0xFF0000);
s1.graphics.drawRect(0,0,100,100);
s1.graphics.endFill();
s1.filters = [new egret.DropShadowFilter(0,0,0xFFFF00,1,50,50)]
this.addChild(s1);

沒有留言:

張貼留言