大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
Laya_社区(258) Laya2.0_文档(42) Laya3.0_文档(24) Laya_示例(22) Laya2.0_示例(19) Laya3.0_api(10) Laya2.0_api(6) laya_api(1)
...hics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphics.drawRect(0, 0, testSp.width, testSp.height, '#FF0000'); testSp.mask = tmpMask...
来源: Laya_社区 发布时间: 20200421
...p = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, this, onMouseDown); } function onMouseDown(e) { var touches = e.touches; i...
来源: Laya_示例 发布时间: 20251130
...= 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20190701
...prite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0, 1483, 950, 0, 950], '#ff0000'); // container.addChild(mask); container.mask = mask; const ani = new Laya.Animation(); container.addChild(ani); ani.loadAtlas('1.json'); ani.play(); ani.pos(300,0); const d1 = 484; const d2 = 1438; const d3 = 950; co...
来源: Laya_社区 发布时间: 20170915
...(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory....
来源: Laya_示例 发布时间: 20251130
... //画直线 sp.graphics.drawLine(10, 58, 167, 58, "#ff0000", 5); } })(); ``` 发布后如下图所示,我们画了一条红色的直线。  (图2) ### 二、绘制折线 那么如何绘制折线呢?直接使用drawLines();方法即...
来源: Laya2.0_文档 发布时间: 20210715
...n:'4181',<br> qqPlayCore log user :<br> <span style="color:#FF0000;">Error: 禁止使用关键字:sc.push_new_msg.local</span> <br> <span style="color:#FF0000;">Error: exit error</span> <br> </p> 搜到https://ask.layabox.com/question/14813 ,...
来源: Laya_社区 发布时间: 20180709
...e(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机...
来源: Laya2.0_示例 发布时间: 20251130
...function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect(0,0,100,100,"#00...
来源: Laya_社区 发布时间: 20170502
...p.graphics.drawLines(0, 0, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5);涂鸦的时候不停的往哪个坐标数组加东西。不断清空重画,不会卡。。 138*****047 • 2018-08-21 18:33 @jweilan:大神,求一个示例代码,谢谢 jweilan • 2018-08-22 15:24 @13...
来源: Laya_社区 发布时间: 20180510