大约有 176 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0036 秒)
Laya_社区(90) Laya3.0_api(61) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(5) laya_api(1) Laya2.0_api(1)
... = 0 Laya.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 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20190701
...ameLoop(1, this, ()=> { angle +=1; if(angle > 360) { angle = 0; } sp.graphics.clear(); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(...
来源: Laya_社区 发布时间: 20190520
...p(1,this,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:...
来源: Laya_社区 发布时间: 20181023
...-23 11:25 浏览: 1050 关注: 1 人 hejianchun • 2018-10-18 21:05 image.graphics.clear();
来源: Laya_社区 发布时间: 20180623
... maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destinat...
来源: Laya_社区 发布时间: 20171222
...件纹理上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture) B:backImage.texture = texture 1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误: value._addReference is not a function ...
来源: Laya_社区 发布时间: 20181001
...多种做法,而其间差异很有必要知道。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000"); var bounds:Rectangle = sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多...
来源: Laya2.0_文档 发布时间: 20210715
...多种做法,而其间差异很有必要知道。 1. 使用getBounds/ getGraphicBounds。 ```typescript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但...
来源: Laya2.0_文档 发布时间: 20210714
....create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉...
来源: Laya_社区 发布时间: 20161230
...og('===this.currentPower: ', this.currentPower); this.NodePowerProgressBar.graphics.clear(); //参数是否为true,都一样 this.NodePowerProgressBar.graphics.drawPie(100, 100, 100, 0, this.currentPower, ''); } 必现条件: 1,第一次进度条绘制到360度是正常的,从第二次开始...
来源: Laya_社区 发布时间: 20190909