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

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

1. graphics alpha 问题 [ 100%]

graphics alpha 问题 var aa:Sprite = new Sprite(); Laya.stage.addChild(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000");     g. alpha()这个方法有bug吧,设置之后出现的结果不对,并不是设定的透明度!!   !!而且有个很有意...

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

2. 自定义的九宫格graphic组件不能放在系统graphic组件底层。 [ 98%]

自定义的九宫格graphic组件不能放在系统graphic组件底层。 为了减少sprite数,写了一个自定义的九宫格graphic组件,但是和系统的graphic组件叠加时,总是在系统graphic组件上方,请问有什么方法可以使自定义的graphic组件也能和系统...

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

3. 如何清除graphics所绘制的指定区域 [ 97%]

如何清除graphics所绘制的指定区域 clear()方法清除的是全部,有没有办法只清除其中的一部分 2018-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 如果你...

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

4. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 97%]

...); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangle.x, -rectangle.y, recta...

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

5. graphics透明度设置详细步骤 [ 97%]

graphics透明度设置详细步骤 调整一个graphics的透明度需要4个步骤 save;alpha;draw;restore;  比如://画一个半透明屎黄色区域 this.graphics.save(); this.graphics.alpha(0.5); this.graphics.drawRect(-40, -110, 80, 110, "#ffcc00"); this.graphics.restore(); //再画一...

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

6. 打包后启动游戏后报错 [ 97%]

...se,还有ide自带的打包app,会报错 报错的栈提示是调用Graphic的setAlpha后报错 在layanative里不能使用setAlpha的方法么 附件 : --> 2018-02-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 ...

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

7. [BUG]大量调用 graphics.drawCircle 导致错误 [ 96%]

[BUG]大量调用 graphics.drawCircle 导致错误 代码: for (var i = 0; i < 500; i++) { var Sprite = new Laya.Sprite(); Sprite.graphics.drawCircle(Math.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.B...

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

8. graphics颜色填充fillColor问题 [ 94%]

graphics颜色填充fillColor问题 在api文档里看到 fillColor 的参数描述是这样写的 “fillColor 填充颜色,或者填充绘图的渐变对象“, 请问这里的渐变对象是什么类型? 能否举个例子说明一下。   另外现在是不是不支持用纹理填充图...

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

9. graphics.drawRect过多会导致程序奔溃 [ 94%]

graphics.drawRect过多会导致程序奔溃 实现了个粉笔的效果, 思路是在一条线上(graphics.drawLine)绘制随机绘制背景颜色的矩形(graphics.drawRect);   但是画一会就会出现明显的性能克顿, 再持续画下去就直接奔溃了;   canvas中每画完一笔...

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

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

...图1-1所示。 (动图1-1) 在IDE中可以通过这些选项来绘制Graphics,如图1-2所示, (图1-2) LayaAir引擎中 laya.display.Graphics 类可以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... ...

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