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

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

11. 使用drawPath路径报错 [ 86%]

使用drawPath路径报错 在使用graphics.drawPath的过程中,出现Cannot read property '_drawPath' of null,如下图:不清楚错误原因在哪里   附件 : --> 2017-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

12. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...绘制矩形与圆角矩形2.1 IDE绘制矩形2.2 代码绘制矩形2.3 用drawPath绘制矩形2.4 IDE绘制圆角矩形2.5 代码绘制圆角矩形2.6 用drawPath绘制圆角矩形三、绘制圆形、椭圆与扇形3.1 IDE绘制圆形3.2 代码绘制圆形3.3 IDE绘制椭圆3.4 代码绘制椭圆3...

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

13. Sprite-绘制各种形状 [ 83%]

...00, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], ["arcTo", 110, 60, 105, 60, 5], ["lineTo", 5, 60], ["arcTo", 0, 60, 0, 55, 5], ["lineTo", 0, 5], ["arcTo", 0, 0, 5,...

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

14. Sprite-根据数据绘制路径 [ 83%]

...ort Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_DrawPath { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scal...

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

15. Sprite-绘制各种形状 [ 82%]

...00, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], ["arcTo", 110, 60, 105, 60, 5], ["lineTo", 5, 60], ["arcTo", 0, 60, 0, 55, 5], ["lineTo", 0, 5], ["arcTo", 0, 0, 5,...

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

16. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 80%]

...全透明, 相应位置的参数为空即可   例如: this.graphics.drawPath(0, 0, Yu_path3, {fillStyle: "#ffffff"}, {"strokeStyle":"#E3E3E5","lineWidth":2}); 填充色为白色   this.graphics.drawPath(0, 0, Yu_path3, null, {"strokeStyle":"#E3E3E5","lineWidth":2}); 无填充色,透明 2018...

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

17. 自己画的view不支持鼠标点击吗? [ 79%]

...到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1);     不管怎么点,在这个点击方法里面是不会执行的  2018-07-09 添...

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

18. laya.ani.GraphicsAni_API3.0 [ 76%]

...ect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors ...

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

19. laya.ui.AutoBitmap_API3.0 [ 74%]

...ect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constr...

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

20. layaFlash关于Graphics绘图 [ 74%]

...,不同层级用graphics绘制的背景,会被清除 关于GraphicsdrawPath方法使用arcTo的bug 问题状态 最新活动: 2017-01-20 03:37 浏览: 1245 关注: 2 人 cuixueying • 2017-01-21 12:30 工具还是有的,API还是flash的API,文档依然有保留,但是关于layaFlash...

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