大约有 720 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(595) Laya3.0_api(40) laya_api(31) Laya2.0_api(27) Laya2.0_文档(20) Laya3.0_文档(6) Laya2.0_示例(1)
...exPositionNormalColorTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1InheritanceVertexPositionNormalColorTexture0Texture1 ObjectImplements IVertex VertexPositionNormalColorTexture 类用于创建位置、法线、颜色、纹...
来源: laya_api 发布时间: 20170929
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。UIComponent height : Number[override] 表示显...
来源: Laya2.0_api 发布时间: 20190513
...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...
来源: Laya_社区 发布时间: 20180417
...is.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff");...
来源: Laya_社区 发布时间: 20170807
WebGL下透明度的问题 我在WebGL模式下的一个View里用Graphics画了黑色的底色 然后上面有一张图片 对View设置了alpha为0.9,这时graphics绘的底色透明度生效了,可以隐约看见背后的内容,但是图片完全没有透明值,请问下是什么原因...
来源: Laya_社区 发布时间: 20170302
... cuixueying 赞同来自: Sprite没有背景色的设置,你可以通过graphics绘制一个你想要的背景色。 2017-01-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lilang 相关问题 btn 鼠标移动上去默认文本颜色...
来源: Laya_社区 发布时间: 20170104
...,点击则可正常关闭); 请指教! // 写法一 let g:Laya.Graphics = new Laya.Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA;...
来源: Laya_社区 发布时间: 20170920
...nt.MOUSE_MOVE, this, mousemove); function mousemove(e) { drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ffffff") drawLayer.cacheAsBitmap; } 我的思路是每一次move都把对应的圆形区域绘制到一个容器上,这样一来drawcall就不会一直增加...
来源: Laya_社区 发布时间: 20160725
关于graphics.drawPath手机端和PC端不一致的问题 我的版本是1.7.4beta。 我想用drawPath画一个这样的图形。如图 于是我先尝试着先用drawPath画一个圆,然后输入以下代码。 以下是ts文件的全部代码。module laya { import Sprite = Laya.Sprite; impor...
来源: Laya_社区 发布时间: 20170425
[LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 Laya3试了十几个版本, 划线:graphics.drawLines 删除显示的数据中的数据时,不闪烁 graphics.drawCurves 删除显示的数据中的数据时,闪烁。 如果不删除,就不闪烁。 能解决吗? 我需要用d...
来源: Laya_社区 发布时间: 20241008