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

大约有 81 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0030 秒)

11. 输入设备-指南针 [ 96%]

... drawUI() { var canvas = new Sprite(); Laya.stage.addChild(canvas); canvas.graphics.drawLine(compassImg.x, 50, compassImg.x, 182, "#FFFFFF", 3); canvas.graphics.drawLine(-140 + compassImg.x, compassImg.y, 140 + compassImg.x, compassImg.y, "#AAAAAA", 1); canvas.graphics.drawLine(compassImg.x, -140 + ...

来源: Laya_示例 发布时间: 20240930

12. graphics.drawLines方法如何设置笔触,向线条的每个末端添加圆形线帽? [ 96%]

graphics.drawLines方法如何设置笔触,向线条的每个末端添加圆形线帽? 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 目前LayaAir 下不支持设置线条...

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

13. 输入设备-指南针 [ 96%]

...ld(directionIndicator); directionIndicator.alpha = 0.8; directionIndicator.graphics.drawCircle(0, 0, 70, "#343434"); directionIndicator.graphics.drawLine(-40, 0, 40, 0, "#FFFFFF", 3); directionIndicator.graphics.drawLine(0, -40, 0, 40, "#FFFFFF", 3); directionIndicator.x = compassImg.x; directionInd...

来源: Laya2.0_示例 发布时间: 20240930

14. Graphics.drawLines 接口 轨迹拐角处出现尖刺,稳定复现带demo [ 96%]

Graphics.drawLines 接口 轨迹拐角处出现尖刺,稳定复现带demo Graphics.drawLines 接口 轨迹拐角处出现尖刺现象;在调小lineWidth的时候能降低减低程度,希望官方能提示个修复方案; 附件包含demo代码,代码复制到 Laya示例代码窗口 即...

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

15. 如何清除graphics绘制的矢量图 [ 94%]

如何清除graphics绘制的矢量图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphic...

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

16. 加载TiledMap 不显示 [ 94%]

...        this.sprite = new Sprite();         this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color);         this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color);         this.sprite.graphics.drawLine(-radiusX, radiusY, 0, radiusY * 2, c...

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

17. Sprite-绘制各种形状 [ 94%]

... drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...

来源: Laya_示例 发布时间: 20240930

18. Sprite-绘制各种形状 [ 93%]

...thing() { let sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...

来源: Laya2.0_示例 发布时间: 20240930

19. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 89%]

webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 webGL模式下 鼠标按下 移动不停的画线。会出现线条异常。 附件 : --> 2017-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 ...

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

20. laya.ani.GraphicsAni_API3.0 [ 89%]

...lic/Protected All Inherited Externals Only exported Menu Globals "laya/ani/GraphicsAni" GraphicsAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage dra...

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