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

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

71. 关于 Laya.stage.bgColor 背景双色 ( 从浅到深 ) [ 63%]

... ctx.createLinearGradient(0, 0, 0, 170); my_gradient.addColorStop(1, "#0066ff"); my_gradient.addColorStop(0, "#ccffff"); ctx.fillStyle = my_gradient; ctx.fillRect(20, 20, 150, 100); 但是 要怎样才能 在 LAYA 上这么做呢   // 这个写法只能使用单色 Laya.stage.bgColor = "#fffff"  ...

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

72. 关于mouseThough=true的问题 [ 63%]

...unction LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(a...

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

73. 扇形遮罩问题。 [ 63%]

...aya.stage.addChild(sp); sp.alpha = 0.8; sp.graphics.drawRect(50,50,50,50,"#ff0000"); var sp1:Sprite = new Sprite(); sp1.alpha = 0.5; //Laya.stage.addChild(sp1); //画扇形 当这个扇形画的角度是 0-360度时 舞台上红色矩形不见了 sp1.graphics.drawPie(75,75,40,0,360,"#ffff00"); sp.ma...

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

74. 关于mouseover的问题 [ 63%]

...  sp.height=100;             sp.graphics.drawRect(0,0,100,100,"#ff0000");             sp.on(Event.MOUSE_OVER,this,onMouse);             sp.on(Event.MOUSE_OUT,this,onMouse);             Laya.stage.addChild(sp);             Stat.show();         }  ...

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

75. laya.display.Graphics [ 62%]

...ber, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):FillTextureCmd 用texture填充。 Graphics  getBounds(realSize:Boolean = false):Rectangle 获取位置及宽高信息矩阵(比较耗CPU,频繁使用会造成卡顿,尽量少用)。 Graphics  load...

来源: Laya2.0_api 发布时间: 20190513

76. 富文本A标签超链接点击范围太小,经常点不到怎么回事? [ 62%]

...-style:normal; font-weight:normal}\n a{text-decoration:underline; color:#00FF00;}\n .hengxian{display:block;leading:6;color:#00000000} "); cssText这里如何定义多个标签的CSS样式 2017-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

77. 问个关于die的问题 [ 62%]

...式即可 var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.to(sp,{x:50,y:50},1000).to(sp,{x:30,y:30},1000); timeLine.play(); 2017-06-15 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

78. WebGL 绘制图形报错 [ 62%]

...ve(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

79. 子容器的事件问题 [ 62%]

...     super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     }     onclickTest(): void {         console.log("单击也没有效果, why !");     } }   2017-08-22 添加评论 免费帖 --> 分享 ...

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

80. TimeLine运行的小问题 [ 62%]

...同来自: //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360}...

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