大约有 230 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
Laya3.0_api(138) Laya_社区(53) Laya3.0_文档(11) Laya2.0_api(9) Laya2.0_文档(9) laya_api(7) Laya2.0_示例(2) Laya_示例(1)
...= new HTMLDivElement(); _divElement.style.fontSize = 18; _divElement.style.color = "#ffffff"; //_divElement.style.strokeColor = "#34edde"; _divElement.style.wordWrap = false; //_divElement.style.stroke = 1; _divElement.style.bold = true; this.addChild(_divElement); var ms:Sprite = new Sprite(); ms.g...
来源: Laya_社区 发布时间: 20171205
...-js-3-4-1 //初始化引擎Laya.init(600, 400, Laya.WebGL);Laya.stage.bgColor = "#ffcccc";var data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml"...
来源: Laya_社区 发布时间: 20190306
...0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; var grayscaleFilter = new ColorFilter(grayscaleMat); var grayApe = new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe Sprite 的 子...
来源: Laya_社区 发布时间: 20170615
... -y --lossy_8bit --lossy_transparent ... Optimizing ... Encoding error 82: color conversion to palette requested while a color isn't in palette Decoding error 82: color conversion to palette requested while a color isn't in palette报错的地方是 zopflipng-bin,我们直接从 LayaAirIDE.app-&g...
来源: Laya_社区 发布时间: 20201223
...layanative里显示出来 但是如果是innerHtml="<span style='color: #cfd4ff;font-size: 30px'>文字</span><br/><img src='../pic.png'/><span style='color: #cfd4ff;font-size: 30px'>文字</span>" 这样的组合话,就只显示文字了,图片就...
来源: Laya_社区 发布时间: 20180106
..., Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }// 关于修改shader内部值的操作 假如有uniform float water_iTime setShaderValue (sprite) { // 在这里直接对 sprite.shaderValue....
来源: Laya_社区 发布时间: 20180531
...出,那个list中的数据也存在,但没渲染出。 2.0 drawTexture color参数无效 斜角透视的感觉怎么弄出来呀?? 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 编辑了图片 执行代码说加载不出来资源 这个是怎么回事...
来源: Laya_社区 发布时间: 20180113
...xt.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /**...
来源: Laya3.0_文档 发布时间: 20251010
...字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水...
来源: Laya2.0_文档 发布时间: 20210715
...: 10% auto 0;background: #ccc;position: relative;} .msgDiv{font-size: 30px;color: #fff;text-align: center;padding-top: 30px;} </style> </head> <body> <div class="layaDiv"></div> <div class="msgDiv">日志</div> </body> <script src="https://cdn.bootc...
来源: Laya_社区 发布时间: 20170427