大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0034 秒)
Laya_社区(84) Laya2.0_文档(11) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_示例(3) Laya_示例(3) Laya2.0_api(3) laya_api(2)
... var r = 38.5; //遮罩圆形半径 cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域 cMask.pos(this.x+r, this.y+r); this.mask = cMask; //不加这一行图片正常显示,但是方图 ...
来源: Laya_社区 发布时间: 20181119
...e; this.bg = new Laya.Sprite(); this.bg.graphics.drawCircle(210, 210, 210, "#FFFFFF", 3); this.bg.alpha = 0.7; owner.addChild(this.bg); this.knob = new Laya.Sprite(); this.knob.graphics.drawCircle(0, 0, 105, "#FF5722"); ...
来源: Laya_社区 发布时间: 20251125
...Handler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHandler():void { trace("KouTu.upHandler()"); // box.stopDrag(); gameContainer.off(Event.MOUSE_MOVE, this, moveHandler); } private function ...
来源: Laya_社区 发布时间: 20170315
...式,抠除上面红色区域 var circle = new Sprite(); circle.graphics.drawCircle(0, 0, 50, "#000"); circle.pos(50, 50); // 设置叠加模式 circle.blendMode = "destination-out"; box.addChild(circle); 实现了擦除red节点的内容擦除 但是无法在擦除后的位置重新绘图 ...
来源: Laya_社区 发布时间: 20170707
...标不显示。 Graphics destroy():void 销毁此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):Dra...
来源: Laya2.0_api 发布时间: 20190513
...rite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之后必现黑屏 手机型号: iph...
来源: Laya_社区 发布时间: 20191215
...gt;> 1) this.$circleSprite.graphics.clear() this.$circleSprite.graphics.drawCircle((this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - 20) >> 1, "#fff") this.addChild(this.$circleSprite) this.start() } public start() { this.timerL...
来源: Laya_社区 发布时间: 20180123
...Sprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错...
来源: Laya_社区 发布时间: 20181016
...rite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之后必现黑屏 手机型号: iph...
来源: Laya_社区 发布时间: 20191216
...Laya.Sprite(); mapMask.size(100,100); mapMask.pos(50,50); mapMask.graphics.drawCircle(0, 0, 50, "#000000") 我这么获得mapMask的matrix,然后放进graphics.drawTexture中呢? 不要说直接用mask,因为微信小游戏不支持,谢谢 2018-11-25 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20181125