egret 画圆 画圆角矩形 画矩形

ballHit
//画圆
_maskMC=new egret.Sprite();
_maskMC.graphics.beginFill(0xFBC745,1);
_maskMC.graphics.drawCircle(0,0,43);
_maskMC.graphics.endFill();

//画矩形	
this._muUp=new egret.Sprite;
this._muUp.graphics.beginFill(0x000000);
this._muUp.graphics.drawRect(0,0,MyData._clientWidth,MyData._clientHeight/2);
this._muUp.graphics.endFill();
this._muUp.y=-MyData._clientHeight/2;
this._myUI4.addChild(this._muUp);

//画圆角矩形	
_maskMC=new egret.Sprite();
_maskMC.graphics.beginFill(0xFBC745);
_maskMC.graphics.drawRoundRect(52,36,956,458,14);
_maskMC.graphics.endFill();

  

原文地址:https://www.cnblogs.com/dt1991/p/14355349.html