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

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

41. laya.display.Graphics [ 68%]

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

42. 鼠标点击穿透问题 [ 68%]

...ar sp2:Sprite=new Sprite(); sp2.graphics.beginFill(0xFFFF00); sp2.graphics.drawCircle(200,200,100); sp2.graphics.endFill(); addChild(sp2); sp2.mouseEnabled=false; sp2.addEventListener(MouseEvent.CLICK,onSp2); } protected function onSp2(event:MouseEvent):void { // TODO Auto-generated method stub trac...

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

43. graphics如何实现橡皮擦效果 [ 67%]

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

44. 新手引导在ios浏览器表现异常 [ 66%]

...rea = this.guideHitArea;             this.guideHitArea.unHit.drawCircle(posX, posY, radius, "#000000");             interactionArea.graphics.drawCircle(posX, posY, radius, "#000000");             let maskButton = new Laya.Button();           ...

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

45. 绘制图形的BUG [ 66%]

...hics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shap...

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

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

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

47. 关于环形进度条,进度不能重置问题 [ 65%]

...0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff"); this.circle.blendMode = "destination-out"; } Laya.class(IndexView,"IndexView",_super); IndexView.prototype.loadProgress = function(){ this.box.addC...

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

48. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 65%]

...400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 this.sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 this.sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 this.sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["a...

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

49. 圆环不跟随 sprite 一起缩放? [ 64%]

...tSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(...

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

50. 这种进度条怎么实现? [ 64%]

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