大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0012 秒)
...tage.height - texture.height) / 2; } applayFilter() { // 创建一个发光滤镜 const GlowFilter = Laya.GlowFilter; let glowFilter = new GlowFilter("#ffff00", 10, 0, 0); // 设置滤镜集合为发光滤镜 this.ape.filters = [glowFilter]; } } new Filters_Glow();module laya { import Sprite = Laya....
来源: Laya2.0_示例 发布时间: 20241118
...tage.height - texture.height) / 2; } applayFilter() { // 创建一个模糊滤镜 const BlurFilter = Laya.BlurFilter; // let blurFilter = new BlurFilter(5); let blurFilter = new BlurFilter(); blurFilter.strength = 5; this.ape.filters = [blurFilter]; } } new Filters_Blur();module laya { import Sprite...
来源: Laya2.0_示例 发布时间: 20241118
..., 0, 0, // G 0, 0, 0, 0, 0, // B 0, 0, 0, 1, 0 // A ]; //创建一个颜色滤镜对象,红色 let redFilter = new ColorFilter(redMat); // 红色的猩猩 let redApe = this.createApe(); redApe.filters = [redFilter]; let firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.widt...
来源: Laya2.0_示例 发布时间: 20241118