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

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

451. 绘制矢量图有圆弧的吗?不是绘制曲线,圆弧 [ 73%]

...情况下,会有绘制效率上的差别吗? 如何获取Sprite上用graphics.drawTexture绘制的texture? 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 如何清除sharedCanvas上一次绘制的内容 Ctrl + 单击以跟踪链接 怎么可以打...

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

452. 绘制曲线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 73%]

...二次贝塞尔曲线,开发者可以在API文档中搜索laya.display.Graphics类可以查看到“drawCurves();”曲线绘制方法。该方法的详细说明如下图所示: ​ ![blob.png](img/3.png) ​ (图8) 下面我们用LayaAir引擎绘制矢量曲线,示例代码如下: ```ja...

来源: Laya2.0_文档 发布时间: 20210714

453. 滤镜问题,有复现demo [ 73%]

...tn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(btn); ...

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

454. laya.ui.Slider_API3.0 [ 73%]

...lider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY b...

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

455. laya.ui.ScrollBar_API3.0 [ 73%]

...VScrollBar HScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough name rollRatio scaleBar slider stopMoveLimit tag t...

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

456. 鼠标交互-双指旋转(多点触控) [ 73%]

...); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, this, onMouseDown); } function onMouseDown...

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

457. 图片如何能实现按照弧度360度的裁剪? [ 73%]

...mage.cacheAs = "bitmap"; bgImage.addChild(pMask);   let angle = 45; pMask.graphics.clear(); let radius = 80; pMask.graphics.drawPie(45, 45, radius, angle, 90, "#000000"); pMask.blendMode = "destination-out"; 2019-06-15 0 0 分享 微博 QZONE 微信 王壮壮 赞同来自: https://blog.csdn.net/wan...

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

458. laya.ui.HSlider_API3.0 [ 73%]

...rarchy Slider HSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY b...

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

459. laya.ui.VSlider_API3.0 [ 73%]

...rarchy Slider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY b...

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

460. batch draw 减少draw call [ 73%]

...l里面呢?   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_社区 发布时间: 20190530