大约有 4 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0013 秒)
...rite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addCh...
来源: Laya2.0_示例 发布时间: 20241119
...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_示例 发布时间: 20241119
...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_示例 发布时间: 20241119
...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_示例 发布时间: 20241119