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

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

31. layaAir真的没办法做涂鸦板? [ 85%]

layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...

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

32. laya.ani.GraphicsAni_API3.0 [ 81%]

...d 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 scale strokeText transform translate create re...

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

33. 绘图性能选择( graphics.clear vs repaint) [ 80%]

...图性能选择( graphics.clear vs repaint) 求教:需要大量的 drawlinedrawlines 不断反复重新绘图,是选择 graphics.clear后重绘, 还是选择重置 points,然后 repaint? 2020-04-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

34. laya.ui.AutoBitmap_API3.0 [ 79%]

...d 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 scale setState strokeText transform translate ...

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

35. 【官网代码】加载dom音频报错,怎么回事? [ 78%]

.../ 256.0) * 50;for (var j:int = 0; j < energy; j++) {Laya.stage.graphics.drawLine(20 * i + 2, 200 + 4 * j,20 * (i + 1) - 2, 200 + 4 * j,"#ff0000",1);Laya.stage.graphics.drawLine(20 * i + 2, 200 - 4 * j,20 * (i + 1) - 2, 200 - 4 * j,"#ffff00",1);}Laya.stage.graphics.drawLine(20 * i + 2, 200,20 * (i...

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

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

...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.from(charact...

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

37. laya.display.Graphics_API3.0 [ 77%]

...d 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 scale strokeText transform translate Construct...

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

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

...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.from(charac...

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

39. batch draw 减少draw call [ 76%]

...?   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, 100, 78,...

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

40. 【解决】富文本html下划线换行bug [ 76%]

...; break; } index++; } let firstlineY = words[0].y+words[0].height; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color,1); let secondLineY = words[slsIndex+1].y + words[slsIndex+1].height; graphic.drawLine(words[slsIndex+1].x,secondLineY,lastWords.x+lastWo...

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