大约有 93 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
...如何设置fillStyle和strokeStyle不同透明度 请问如果实现一个填充半透明而边框不透明的圆角矩形的绘制呢? 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 w1114367261 赞...
来源: Laya_社区 发布时间: 20180416
水漫填充算法(floodfill) 如果想使用laya引擎制作一个填色游戏,类似于Colorfy,秘密花园那样,那么有没有什么api可以用上? 目前还没找到api可以实现水漫填充算法,能想到的就是使用不规则热区的sprit来模拟,不过这种模拟只能模拟...
来源: Laya_社区 发布时间: 20171018
...ies fillColor fillColor: any Defined in laya/display/cmd/DrawRectCmd.ts:31 填充颜色,或者填充绘图的渐变对象。 height height: number Defined in laya/display/cmd/DrawRectCmd.ts:27 矩形高度。 lineColor lineColor: any Defined in laya/display/cmd/DrawRectCmd.ts:35 (可选)边框...
来源: Laya3.0_api 发布时间: 20231115
现在的graphics 填充色透明度还不可以设置吗? 或者说和背景混合呢? 现在我画了一个矩形框,然后他我现在不想有填充色,只想显示背景图片的颜色 2020-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20200525
如何实现渐变填充对象呀? 请问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
...r:String, lineWidth:Number, textAlign:String):void 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String, underLine:int = 0):void 在画布上绘制文本。 Graphics fillTexture(tex:Texture, x:Numb...
来源: laya_api 发布时间: 20170929
...ion(source:Rectangle, out:Rectangle = null):Rectangle 矩形联合,通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 Rectangle 对象。 注意:union() 方法忽略高度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Re...
来源: laya_api 发布时间: 20170929
...ion(source:Rectangle, out:Rectangle = null):Rectangle 矩形联合,通过填充两个矩形之间的水平和垂直空间,将这两个矩形组合在一起以创建一个新的 Rectangle 对象。 注意:union() 方法忽略高度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Re...
来源: Laya2.0_api 发布时间: 20190513
...eWidth:Number, textAlign:String):FillBorderTextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics fillTexture(texture:Texture, x:Number, y:Nu...
来源: Laya2.0_api 发布时间: 20190513
...。 y: number 圆点Y 轴位置。 radius: number 半径。 fillColor: any 填充颜色,或者填充绘图的渐变对象。 Default value lineColor: any = null (可选)边框颜色,或者填充绘图的渐变对象。 Default value lineWidth: number = 1 (可选)边框宽度。 Returns D...
来源: Laya3.0_api 发布时间: 20231115