• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0034 秒)

81. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 52%]

...   var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域              cMask.pos(this.x+r, this.y+r);              this.mask = cMask; //不加这一行图片正常显示,但是方图              ...

来源: Laya_社区 发布时间: 20181119

82. [LayaAirIDE3]2d相机打包后问题 [ 52%]

...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

83. 关于新手引导 [ 52%]

...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

84. graphics如何实现橡皮擦效果 [ 51%]

...式,抠除上面红色区域 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

85. laya.display.Graphics [ 51%]

...标不显示。 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

86. iOS环境浏览器使用mask黑屏 [ 51%]

...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

87. 这种进度条怎么实现? [ 51%]

...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

88. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 51%]

...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

89. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 50%]

...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

90. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 50%]

...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