• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 17 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0036 秒)

11. laya.ui.AutoBitmap_API3.0 [ 77%]

...r height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save sc...

来源: Laya3.0_api 发布时间: 20231115

12. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 77%]

...400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 this.sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 this.sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 this.sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["a...

来源: Laya_社区 发布时间: 20180115

13. laya.display.Graphics [ 76%]

...标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics  drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):Dra...

来源: Laya2.0_api 发布时间: 20190513

14. layabox可以做格子效果?可以帮忙看看吗? [ 75%]

...子里放圆圈怎么弄? cyqcyqcyq • 2017-12-30 15:42 再用graphics.drawCircle(0, 0, 5, "#000000")即可 cyqcyqcyq • 2017-12-30 16:25 @gaowei2024:676748318 casd12222003d • 2017-12-30 22:35 @gaowei2024:用程序去画图,这个我只在TC的时候干过,现在都是用图片...

来源: Laya_社区 发布时间: 20171230

15. 请问LayaAir中如何使图片以圆形的方式显示? [ 70%]

...le最为遮罩给图片就可以了 var sp:Sprite=new Sprite() sp.graphics.drawCircle(0,0,50,"#FF0000") img.mask=sp; 2017-01-07 7 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ytd7777 相关问题 微信关系链:LayaAir引擎针对微...

来源: Laya_社区 发布时间: 20170107

16. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...遮罩 let mask = new Laya.Sprite(); sprite.addChild(mask); mask.graphics.drawCircle(200, 200, 100, "#FFFFFF"); //图片添加遮罩 setTimeout(() => { sprite.mask = mask;//等待1秒执行遮罩 }, 1000); 运行效果如下: (动图3-5) 3.4.6 设置点击区hitArea 鼠标操作相关属性...

来源: Laya3.0_文档 发布时间: 20251010

17. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 15%]

...括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("tou...

来源: Laya_社区 发布时间: 20161109