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

大约有 2 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0010 秒)

1. 鼠标交互-修正交互区域 [ 100%]

...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

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

...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