大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0033 秒)
Laya_社区(84) Laya2.0_文档(11) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_示例(3) Laya_示例(3) Laya2.0_api(3) laya_api(2)
... function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(...
来源: Laya_社区 发布时间: 20160913
...////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); } 附件 : --> 相关链接 : https://ask.layabox.com/question/4...
来源: Laya_社区 发布时间: 20190312
...400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 this.sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 this.sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 this.sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["a...
来源: Laya_社区 发布时间: 20180115
...anel); var panelChild:Laya.Sprite = new Laya.Sprite(); panelChild.graphics.drawCircle(0,0,50,"#ffbb88"); panelChild.pos(100,100); panel.addChild(panelChild); } } new GameMain(); 附件 : --> 2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20170814
... var v:View = new View(); v.graphics.drawCircle(50, 50, 100, "#000000"); v.pos(100, 100); this.addChild(v); } } } 然后, 报错就在Box上: Uncaught TypeError: Cannot read property 'Box' of u...
来源: Laya_社区 发布时间: 20170725
...了,我改一下 189*****192 • 2017-04-25 11:45 @cyqcyqcyq: 圆建议 drawCircle 我用你的代码 在ios手机上绘制 也是圆的.你的版本是多少? cyqcyqcyq • 2017-04-25 11:50 1.7.2.因为我并不是要画整个圆,而是想画出问题中的第一张图的效果,所以既需...
来源: Laya_社区 发布时间: 20170425
...eSteps[step++]; interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(guide.x, guide.y, guide.radius, "#000000"); hitArea.unHit.clear(); hitArea.unHit.drawRect(guide.x, guide.y, guide.radius, "#000000"); tipContainer.graphics.clear(); tipContainer.loadImage(guide.tip); tipContainer.p...
来源: Laya_社区 发布时间: 20171031
...ner); this.interactionArea.graphics.clear(); this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000"); 附件 : --> 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20171222
...pe.y = Laya.stage.height / 2; //这里是我加的代码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN, this, this.onStartDrag); } private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragR...
来源: Laya_社区 发布时间: 20171106
...aya.stage.mouseY), _colorSpr); var cir:Sprite = new Sprite(); cir.graphics.drawCircle(0, 0, 15, "#fff"); cir.pos(p.x, p.y); cir.blendMode = "destination-out"; _colorSpr.addChild(cir); _htmlCanvas = _colorSpr.drawToCanvas(_colorTex.width, _colorTex.height, _colorSpr.x, _colorSpr.y); _tex = new Textur...
来源: Laya_社区 发布时间: 20180302