大约有 2 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0010 秒)
...Rect(); this.createDarkOrchidRect(); // 设置舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.on(Event.MOUSE_DOWN, this, this.onDown); } createCoralRect() { const Sprite = Laya.Sprite, Event = Laya.Event; let coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.st...
来源: Laya2.0_示例 发布时间: 20240930
...rayscaleFilter = new ColorFilter(grayscaleMat); // 使用 gray 方法实现灰色滤镜 // let grayscaleFilter = new ColorFilter(); // grayscaleFilter.gray(); // 灰度猩猩 let grayApe = this.createApe(); grayApe.filters = [grayscaleFilter]; let secondChild = Laya.stage.getChildAt(1); grayApe.x = ...
来源: Laya2.0_示例 发布时间: 20240930