大约有 796 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
...n sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sight...
来源: Laya_社区 发布时间: 20171012
...xture.load('comp/zzw.png' ); setTimeout( function(){ aa.graphics.drawTexture(texture,0,0); }, 1000 ) } 3Q 2017-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: qq...
来源: Laya_社区 发布时间: 20171226
...的渲染中,会遍历所有的插槽,调用BoneSlot中的draw方法(graphics.drawTexture和graphics.drawSkin) ,将插槽中的纹理通过封装cmd的形式通过方法加入_cmd的队列中,通过_renderAll遍历执行所有_cmd队列中的指令进行渲染从而更新画面 。可以...
来源: Laya_社区 发布时间: 20181107
...代码造成。 __proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords...
来源: Laya_社区 发布时间: 20190801
...: 2 人 cuixueying • 2017-07-04 10:48 这个也不多,就好比sprite.graphics绘制了一个矢量图形一样,graphics没有继承,只是用来绘制矢量的!
来源: Laya_社区 发布时间: 20170704
... = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel); 这个是我的代码,sp是一个精灵,放在panel的0,0点后确实是不显示,往右下移一个像素后就能显示出来了 2017-02-20 0 0 ...
来源: Laya_社区 发布时间: 20170217
...t: Texture = Laya.loader.getRes("load/0.png"); this.darwSprite.graphics.drawTexture(t,0,0); this.darwSprite.graphics.drawTexture(t,176,0); this.darwSprite.graphics.drawTexture(t,176*2,0); 采用这方式在sprite内部绘制了3个一样的png,每一个宽度...
来源: Laya_社区 发布时间: 20160718
...决了。 原先这样写的,网页上可以,native下是反的。 spt.graphics.drawPie(spt.width / 2, spt.height / 2, spt.width / 2, angle - 90, -90, '#000000'); 现在改成了 spt.graphics.drawPie(spt.width / 2, spt.height / 2, spt.width / 2, angle - 90, -90+360, '#000000'); 2017-08-21 0 1 ...
来源: Laya_社区 发布时间: 20170821
... 提交 3 个回复 king 赞同来自: cuixueying 、李政666 、Ace1024 Graphics fillTexture 2017-02-07 3 0 分享 微博 QZONE 微信 李政666 赞同来自: Ace1024 2019-04-23 1 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 通过上面说的或在ide里通过filltwxture都可以实...
来源: Laya_社区 发布时间: 20170207
WebGL模式下circle出现锯齿 在WebGL模式下,使用Graphics的circle画圆,会出现锯齿;在Canvas并不会出现。有什么好的解决方案? 2019-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20190221