大约有 275 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
Laya3.0_api(68) Laya_社区(65) Laya2.0_api(61) laya_api(58) Laya2.0_文档(11) Laya3.0_文档(6) Laya2.0_示例(3) Laya_示例(3)
...文本工具集。 Public Methods MethodDefined By addFilter(target:Sprite, filter:IFilter):void[static] 给指定的目标显示对象添加滤镜。 UIUtils adptString(str:String):String[static] 替换字符串中的转义字符 UIUtils clearFilter(target:Sprite, filterType:Class):void[...
来源: Laya2.0_api 发布时间: 20190513
...文本工具集。 Public Methods MethodDefined By addFilter(target:Sprite, filter:IFilter):void[static] 给指定的目标显示对象添加滤镜。 UIUtils adptString(str:String):String[static] 替换字符串中的转义字符 UIUtils clearFilter(target:Sprite, filterType:Class):void[...
来源: laya_api 发布时间: 20170929
...其他效果。您可以将滤镜应用于任何显示对象(即,从 Sprite 类继承的对象)。 注意:对于 RGBA 值,最高有效字节代表红色通道值,其后的有效字节分别代表绿色、蓝色和 Alpha 通道值。 Public Properties Hide Inherited Public Properties Show...
来源: Laya2.0_api 发布时间: 20190513
...以的。附上代码,麻烦大神看看,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilt...
来源: Laya_社区 发布时间: 20170825
... = stateMap[e.type]); } public static function addDark(target:laya.display.Sprite, isDark:Boolean = true):void { if (isDark) { // laya.ui.UIUtils.addFilter(target, DARK); target.filters=[ new ColorFilter([0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 1, 0])]; } else { // laya.ui.UIUtil...
来源: Laya_社区 发布时间: 20160802
...s = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true); spi.texture = spi1.texture = spi2.texture = this.tempTexture; //创建模糊滤镜实例 var blurFilter = n...
来源: Laya_社区 发布时间: 20191230
...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? ...
来源: Laya_社区 发布时间: 20170908
...wfilter的demo改动过来的,执行以后没有效果 (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...
来源: Laya_社区 发布时间: 20181012
...滤镜必须是webGL模式,否则无效Laya.init(600,400,WebGL); var sp:Sprite=new Sprite(); sp.loadImage("Pages.png",0,0,0,0); Laya.stage.addChild(sp); sp.filters = [new GlowFilter("#ff0000",10,10,10)]; 2017-01-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170118
...下的onConfigLoaded方法里,使用Texture2D.setPixels创建了纹理,Sprite通过绘制纹理graphics.drawTexture的方式生成可视化图片,但这个Sprite在改变大小时会出现绘制失败的情况,demo里scale在0.7及更小的情况下就不再绘制,即图片不可见,具...
来源: Laya_社区 发布时间: 20200422