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

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

1. laya.maths.Color_API3.0 [ 100%]

...c/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Color" Color Class Color Color 类用于创建颜色实例。 Hierarchy Color Implements IClone Index Constructors constructor Properties a b g r BLACK BLUE CLEAR CYAN GRAY GREEN MAGENTA RED WHITE YELLOW Methods clone cloneTo...

来源: Laya3.0_api 发布时间: 20231115

2. laya.d3.math.Color_API3.0 [ 99%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Color" Color Class Color Color 类用于创建颜色实例。 Hierarchy Color Implements IClone Index Constructors constructor Properties a b g r BLACK BLUE CLEAR CYAN GRAY GREEN MAGENTA RED WHITE YELLOW Methods clone cloneTo...

来源: Laya3.0_api 发布时间: 20231102

3. 区块地图-等角地图 [ 93%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createMap(); Laya.stage.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, L...

来源: Laya_示例 发布时间: 20251130

4. 区块地图-等角地图 [ 93%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); th...

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

5. laya.d3.math.Color [ 92%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames ColorProperties | Methods | Constants Packagelaya.d3.mathClasspublic class ColorInheritanceColor ObjectImplements laya.d3.core.IClone Color 类用于创建颜色实例。 Public Properties PropertyDefined By  a : Number...

来源: Laya2.0_api 发布时间: 20190513

6. 绘制梯形 出错问题~ [ 90%]

...路径 ]; //绘制梯形 lineSpr.graphics.drawPath(0, 0, path, {fillStyle: color}, {"strokeStyle": color, "lineWidth": "1"});   初始得出梯形的上顶边宽度是:0.001523 像素   这时候梯形高度是1186 像素  但是 画的不完整。感觉到了一半就断了。 2018-07-17 添...

来源: Laya_社区 发布时间: 20180717

7. 加载TiledMap 不显示 [ 89%]

...Laya.stage.scaleMode = Stage.SCALE_SHOWALL;         Laya.stage.bgColor = "#232628";          this.createMap();          Laya.stage.on("click", this, this.onStageClick);     }      private createMap(): void {         this.tiledMap = new TiledMap(...

来源: Laya_社区 发布时间: 20201230

8. 混合模式-Lighter [ 88%]

...辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage.ali...

来源: Laya_示例 发布时间: 20251130

9. 混合模式-Lighter [ 88%]

...凤凰的分辨率是550 * 400 phoenixWidth = 500, phoenixHeight = 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite, Tween =...

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

10. Sprite-缓存为静态图像 [ 85%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); setup(); })(); function setup() { var textBox = new Sprite(); // 随机摆放文本 var text; for (var i = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() ...

来源: Laya_示例 发布时间: 20251130