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

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

41. 缓动-简单的Tween [ 77%]

...aracters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(terminalX, 0, terminalX, Laya.stage.height, "#FFFFFF"); // characterA使用Tween.to缓动 Tween.to(characterA, { x : terminalX }, 1000); // characterB使用Tween.from缓动 characterB.x = terminalX; Tween.fr...

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

42. laya绘制图形进行缩放的时候有问题 [ 76%]

... 2018-02-11 15:44 public static SymbolRoot(sp: Laya.Sprite, cfg: any) { sp.graphics.drawCircle(0, 0, 20, "#ffffff", "#000000", 3); sp.graphics.drawLine(-20, -20, 20, 20, "#000000", 3); } public static SymbolSeq(sp: Laya.Sprite, cfg: any) { sp.graphics.drawLine(-20, 0, 2...

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

43. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 76%]

...n sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sight...

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

44. HTMLDivElement下划线换行时,下划线颜色错误 [ 75%]

...代码造成。 __proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords...

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

45. graphics如何绘制阴影 [ 75%]

graphics如何绘制阴影 graphics.drawLine可以绘制带阴影的线条吗? 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 再画一条线,在它后面显示就可以了...

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

46. 用graphics画线时有严重锯齿 [ 73%]

graphics画线时有严重锯齿 做了个简单的画板功能,因为要用到橡皮擦工具,所以背景容器的cacheAs设置了bitmap,所以画出来的线段锯齿特别严重。如果背景容器不设置cacheAs=“bitmap”,则非常圆滑。以下是设置了bitmap的。   附件 :...

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

47. laya.display.Graphics [ 73%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...

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

48. graphics.drawTexture 有问题,紧急! [ 73%]

graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会不断增多,为了优化相处了一个方案。   没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...

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

49. Laya.sprite.graphics失效 [ 73%]

Laya.sprite.graphics失效 bug触发方式:鼠标移动到一个CustomizeSprite实例上面,再挪开,等待数秒,所有方形sprite被清空,重新触发CustomizeSprite的鼠标事件后所有图形重新出现 注释掉CustomizeSprite.KillInfo函数中的PerformanceCentre.instance.Text...

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

50. laya.ui.AutoBitmap [ 73%]

...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...

来源: laya_api 发布时间: 20170929