大约有 321 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(204) Laya3.0_api(66) Laya2.0_文档(13) Laya3.0_文档(13) Laya2.0_示例(9) Laya_示例(8) laya_api(4) Laya2.0_api(4)
...new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.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.drawRec...
来源: Laya_社区 发布时间: 20200421
...this.drawHandler);}private function drawHandler():void{Laya.stage.graphics.clear();var dataArray:Uint8Array = new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataArray);var step:int = Math.round(dataArray.length / 60);for (var i:int = 0; i < 40; i++) {var energy:int = (da...
来源: Laya_社区 发布时间: 20181023
...ation-=5; if(mc.rotation<=0) { Laya.timer.clear(this,onLoop); mc.rotation=0; } } 所以,mc.rotation=0时是有误差的 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20171228
....timer.loop(100, this, () => { if (r >= 360) r = 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
...我的牌大了。可是我的牌还是出不去 computer() { Laya.timer.clear(this,this.computer); var NTS: number; var NTE: number; this.nextTurn; let i = this.turnNumber; if(i==0){ return; } this.getPlayer(); } gotoNext(){ this.turnNumber++; if(this.turnNumber>3) { this.turnNumber=0 } } ...
来源: Laya_社区 发布时间: 20180626
...eadyUrl = "", isSaveFile = false, fileType = "", isAutoClear = true) { DEB("下载文件"+fileUrl) var downloadTask = MiniFileMgr.wxdown({ url: fileUrl, success: function (data) { if (data.statusCode === 200) MiniFileMgr.readFile(data.tempFilePath, encoding, callBack, r...
来源: Laya_社区 发布时间: 20200103
...f (!canmove){ console.log("move over"); Laya.timer.clear(this,funbg); this.moveover=false; } } 这个是简单的一段代码 请注意如果初始化不设置 this.bgimg.width=scronw; this.bgimg.height=scronh; 这个是设置宽高的地方,只...
来源: Laya_社区 发布时间: 20171024
... If true, the texture will be flipped vertical. Default is false. * @param clearColor Optional. If provided, the texture will be cleared to this color before drawing. Default is null. * @returns The drawn RenderTexture2D object. * @ZH 绘制当前对象到一个 Texture 对象上。 * @param canvasW...
来源: Laya_社区 发布时间: 20250827
...颜色问题 关于主程序过大的问题 关于removechild、destory、clear的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 mask在layaplayer中有问题 问题状态 最新活动: 2019-03-28 13:56 浏览: 1530 关注: 2 人 158*****196 • 2019-04-01 16:23 不...
来源: Laya_社区 发布时间: 20190328
...es("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 所以右边可能没有图片了 这里补一个 this.rightBg = new laya.display.Sprite(); this.rightBg.graphics.drawTexture(laya.resource.Texture.createFr...
来源: Laya_社区 发布时间: 20160801