大约有 315 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0038 秒)
Laya_社区(123) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(8) Laya3.0_文档(2) Laya2.0_示例(2) Laya_示例(2)
...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
... 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
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
...游戏背景 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
...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
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
...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...
来源: laya_api 发布时间: 20170929
...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...
来源: Laya2.0_api 发布时间: 20190513
怎么检测点是否在 graphics所绘制的区域内 怎么检测点是否在 graphics所绘制的区域内 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: XiaozeRain 检测点是...
来源: Laya_社区 发布时间: 20180329
graphics.drawTexture 绘制微信小游戏开放数据域的sharecanvas之后,里面设置的一些透明度都无效了。是draw的问题还是。sharecanvas的问题? 2018-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20180603