大约有 720 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(595) Laya3.0_api(40) laya_api(31) Laya2.0_api(27) Laya2.0_文档(20) Laya3.0_文档(6) Laya2.0_示例(1)
...变填充对象呀? 请问LayaAir如何绘制一个渐变矩形? this.graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐...
来源: Laya_社区 发布时间: 20180904
...制直线与折线 ### 一、绘制直线 在API中搜索laya.display.Graphics类可以查看到该API的各种矢量绘图方法。其中drawLine();用于绘制矢量直线。该方法的详细说明如下图所示:  (图1) 下面我们用LayaAir引擎画一...
来源: Laya2.0_文档 发布时间: 20210715
...法或算法。 有没有四元数右乘三维向量的算法? 现在的graphics 填充色透明度还不可以设置吗? 或者说和背景混合呢? 使用setsubpixel函数对图片进行纹理像素填充,安卓端微信不正常 关于graphics.fillTexture,该api只能填充矩形的,...
来源: Laya_社区 发布时间: 20171018
...链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是sp.graphics.clear(); 2017-10-19 0 2 分享 微博 QZONE 微信 laya21126 赞同来自: /** * 初始化 地图 */ public function initMap(texture:Texture, bgID:int):void{ ...
来源: Laya_社区 发布时间: 20171019
...ionNormalColorTexture0Texture1TangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1TangentInheritanceVertexPositionNormalColorTexture0Texture1Tangent ObjectImplements IVertex VertexPositionNormalColorTextureTangent 类用于创建位置、...
来源: laya_api 发布时间: 20170929
...ight); } showFight(num: number): void { if (this._sprFight) this._sprFight.graphics.clear(); this._sprFight = bigao.utils.TextrueUtils.getNumberByUrl(resourcesCenter.ResourcesPathStr.FIGHT_NUMBER_PATH_PNG, num.toString()); this._sprFight.x = 600; this._sprFight.y = 150; this.addChild(this._sprFight)...
来源: Laya_社区 发布时间: 20170916
...; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图合并到了一起, 于是我再尝试 constructor() { Laya.init(1000,800); this.img = new Laya.Spr...
来源: Laya_社区 发布时间: 20180406
... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...
来源: Laya_社区 发布时间: 20180728
...制直线与折线 ### 一、绘制直线 在API中搜索laya.display.Graphics类可以查看到该API的各种矢量绘图方法。其中drawLine();用于绘制矢量直线。该方法的详细说明如下图所示:  (图1) 下面我们用LayaAir引擎画一...
来源: Laya2.0_文档 发布时间: 20210714
...制直线与折线 ### 一、绘制直线 在API中搜索laya.display.Graphics类可以查看到该API的各种矢量绘图方法。其中drawLine();用于绘制矢量直线。该方法的详细说明如下图所示:  (图1) 下面我们用LayaAir引擎画一...
来源: Laya2.0_文档 发布时间: 20210714