大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0038 秒)
Laya_社区(84) Laya2.0_文档(11) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_示例(3) Laya_示例(3) Laya2.0_api(3) laya_api(2)
...ask:Sprite = new Sprite(); //画一个圆形的遮罩区域 cMask.graphics.drawCircle(80,80,50,"#ff0000"); //圆形所在的位置坐标 cMask.pos(120,50); //实现img显示对象的遮罩效果 img.mask = cMask; } } } ``` 运行效果如图3所示:  (图3) 通过对比代码...
来源: Laya2.0_文档 发布时间: 20210714
...aya.stage.mouseX; sp.y=Laya.stage.mouseY; sp.graphics.clear(); sp.graphics.drawCircle(0, 0, 200,"#0ef604"); } li970704928 • 2017-12-13 19:08 @Laya_Aaron:可以吗这样复制过来的 Laya_Aaron • 2017-12-13 19:19 这么看 this.addChild(guideContainer); 这一行 区别于文档 是La...
来源: Laya_社区 发布时间: 20171213
...以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... 下面将对这些Graphics进行讲解。 二、绘制矩形与圆角矩形 2.1 IDE绘制矩形 在Sprite对象的 Graphics 组件中,可以通过点击 + 来...
来源: Laya3.0_文档 发布时间: 20251010
... var cMask = new Sprite(); //画一个圆形的遮罩区域 cMask.graphics.drawCircle(80,80,50,"#ff0000"); //圆形所在的位置坐标 cMask.pos(120,50); //实现img显示对象的遮罩效果 img.mask = cMask; } })(); ``` 运行效果如图3所示:  (图3) 通过对比代...
来源: Laya2.0_文档 发布时间: 20210715
... = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawCircle(80,80,50,"#ff0000"); //圆形所在的位置坐标 this.cMask.pos(120,50); //实现img显示对象的遮罩效果 this.img.mask = this.cMask; } } new MaskDemo(); ``` 运行效果如图3所示:  ...
来源: Laya2.0_文档 发布时间: 20210715
...e = Stage.FRAME_SLOW; var sp:Sprite = new Sprite(); sp.graphics.drawCircle(0, 0, 20, "#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE, this, function() { sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ```  (图1...
来源: Laya2.0_文档 发布时间: 20210715
...ya.stage.frameRate=Stage.FRAME_SLOW; var sp=new Laya.Sprite(); sp.graphics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ; sp.graphics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` :void[override] 销毁此对象。 AutoBitmap drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制...
来源: laya_api 发布时间: 20170929