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

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

21. 计时器-延迟执行 [ 79%]

...00, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单...

来源: Laya2.0_示例 发布时间: 20260106

22. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 79%]

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

23. graphics的fillTexture 圆角图边缘有多出线条 [ 77%]

graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...

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

24. Sprite-新手引导 [ 77%]

...游戏背景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //...

来源: Laya_示例 发布时间: 20260106

25. Sprite-新手引导 [ 77%]

...prite(); guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionAre...

来源: Laya2.0_示例 发布时间: 20260106

26. graphics alpha 问题 [ 76%]

graphics alpha 问题 var aa:Sprite = new Sprite(); Laya.stage.addChild(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000");     g. alpha()这个方法有bug吧,设置之后出现的结果不对,并不是设定的透明度!!   !!而且有个很有意...

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

27. laya.ui.AutoBitmap [ 76%]

...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...

来源: laya_api 发布时间: 20170929

28. laya.display.Graphics [ 76%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...

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

29. 怎么检测点是否在 graphics所绘制的区域内 [ 76%]

怎么检测点是否在 graphics所绘制的区域内 怎么检测点是否在 graphics所绘制的区域内 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: XiaozeRain 检测点是...

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

30. graphics.drawTexture [ 76%]

graphics.drawTexture 绘制微信小游戏开放数据域的sharecanvas之后,里面设置的一些透明度都无效了。是draw的问题还是。sharecanvas的问题? 2018-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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