大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0021 秒)
...is.ape.y = (Laya.stage.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 { imp...
来源: Laya2.0_示例 发布时间: 20241117
...0, 0, // R 0, 0, 0, 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...
来源: Laya2.0_示例 发布时间: 20241117
....stage.addChild(bg2); bg2.graphics.drawTexture(bgRes); bg2.scale(3, 3); // 创建mask let maskSp = new Sprite(); maskSp.graphics.drawTexture(maskRes); maskSp.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -La...
来源: Laya2.0_示例 发布时间: 20241117
...is.ape.y = (Laya.stage.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 la...
来源: Laya2.0_示例 发布时间: 20241117
...ngs = Laya.loader.getRes(partPath); const Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage....
来源: Laya2.0_示例 发布时间: 20241117
...ngs = Laya.loader.getRes(partPath); const Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage....
来源: Laya2.0_示例 发布时间: 20241117
...ngs = Laya.loader.getRes(partPath); const Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage....
来源: Laya2.0_示例 发布时间: 20241117