• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0014 秒)

1. 混合模式-Lighter [ 100%]

....g = Math.floor(obj.g); bgColorChannels.b = Math.floor(bgColorChannels.b); var r = bgColorChannels.r.toString(16); r = r.length == 2 ? r : "0" + r; var g = bgColorChannels.g.toString(16); g = g.length == 2 ? g : "0" + g; var b = bgColorChannels.b.toString(16); b = b.length == 2 ? b : "0" + b; return...

来源: Laya2.0_示例 发布时间: 20251130

2. 滤镜-颜色滤镜 [ 75%]

...(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.width - this.apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - this.apeTexture.height) ...

来源: Laya2.0_示例 发布时间: 20251130

3. 性能测试-卡通人物2 [ 65%]

...er.frameLoop(1, this, this.gameLoop); } private createCharacters(): void { var char: Character; var charSkin: Array; for (var i: number = 0; i = 0; i--) { this.characters[i].update(); } if (Laya.timer.currFrame % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite ...

来源: Laya2.0_示例 发布时间: 20251130

4. 缓动-时间线 [ 63%]

...s.TimeLine; import laya.webgl.WebGL; public class Tween_TimeLine { private var target:Sprite; private var timeLine:TimeLine = new TimeLine(); public function Tween_TimeLine() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.al...

来源: Laya2.0_示例 发布时间: 20251130