大约有 88 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0028 秒)
..., 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0 ]; colorMatrix[0] = lastResult.r / 255 + (result.r - lastResult.r) / 255 * persent; colorMatrix[6] = lastResult.g / 255 + (result.g - lastResult.g) / 255 * persent; colorMatrix[12] = lastResult.b / 255 + (result.b - lastResult.b) / 255 * persent; return new La...
来源: Laya_社区 发布时间: 20180930
...StandardMaterial(); ID_12kg_huang1_mat.albedoColor = new Laya.Vector4(245/ 255, 170 / 255, 19 / 255, 1); ID_12kg_huang1_mat.metallic = 0.8 ID_12kg_huang1_mat.smoothness = 0.22; ID_12kg_huang1_mat.occlusionTexture = Laya.Texture2D.load("res/aidu/four12/Assets/pic/four12KG.jpg"); ID_12kg_huang1_mat.oc...
来源: Laya_社区 发布时间: 20180509
...=0,n=data.length;i < n;i+=4){ if (data[i+3]==0)continue ; data[i] *=red/255; data[i+1] *=green/255; data[i+2] *=blue/255; } ctx.putImageData(imgdata,0,0); } 而且这个getImageData调用的canvas是一个离屏cavas,所以哪位大神帮忙看下,谢谢! 2018-08-03 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20180803
...pr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters = [filter]; 附件 : --> 2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170825
...litMaterial = new UnlitMaterial(); unlitMaterial.albedoColor = new Vector4(255,0,0,255); var shurikenMaterial:ShurikenParticleMaterial = new ShurikenParticleMaterial(); shurikenMaterial.color = new Vector4(255,0,0,255); 按我的理解,官方示例上的unlitMaterial.albedoColor不是描边颜...
来源: Laya_社区 发布时间: 20201218
...0" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 1...
来源: Laya_社区 发布时间: 20190401
...h.createPlane 版本3.1.4, 使用该函数创建正方形平面,尺寸为255*255时发现有一角缺了一格,尺寸为511*511时发现缺的更多了;用像素线绘制了mesh,是完整的 附件 : --> TestPlane.zip 2024-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20240710
...css是: position: absolute; left: 0px; top: 0px; background: rgb(255, 255, 255); transform-origin: 0px 0px 0px; transform: matrix(0.8, 0, 0, 0.8, 0, 0); 但我想把该canvas放进一个div中,然后把div在页面上调整位置。该怎么弄? 我试过把position改成static...
来源: Laya_社区 发布时间: 20171123
...变色滤镜 Parameters red:Number (default = 0) — 红色增量,范围:0~255 green:Number (default = 0) — 绿色增量,范围:0~255 blue:Number (default = 0) — 蓝色增量,范围:0~255 alpha:Number (default = 1) — alpha,范围:0~1 ReturnsColorFiltergray()method public function gray(...
来源: Laya2.0_api 发布时间: 20190513
...f (settings.disableColor){ for (i=0;i < 3;i++){ particleData.startColor=255; particleData.endColor=255; } particleData.startColor=MathUtil.lerp(settings.minStartColor,settings.maxStartColor,Math.random()); particleData.endColor=MathUtil.lerp(settings.minEndColor,settings.maxEndColor,Math.random()...
来源: Laya_社区 发布时间: 20170416