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

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

11. graphics持续绘制扇形问题 [ 81%]

graphics持续绘制扇形问题 private function onLoaded():void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private functio...

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

12. 先创建的sprite对象的graphics设置alpha会影响后创建的sprite对象? [ 81%]

先创建的sprite对象的graphics设置alpha会影响后创建的sprite对象? 先创建的sprite对象的graphics设置alpha会影响后创建的sprite对象,应该说会应该全局的透明度,除非后面的再独自设置。这个是bug吗? 还是就是只能这样实现。代码如...

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

13. 关于环形进度条,进度不能重置问题 [ 77%]

...is.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff");...

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

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

...lic/Protected All Inherited Externals Only exported Menu Globals "laya/ani/GraphicsAni" GraphicsAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage dra...

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

15. 这种进度条怎么实现? [ 75%]

...his.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') this.$circleSprite.blendMode = "destination-out" this.$circleSprite.pos(this.CIRCLE_WIDTH >> 1,thi...

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

16. 扇形进度条怎么实现? [ 75%]

...条的sizeGrid的第5个参数为1即可。   问题2:layaAir 提供了graphics.drawPie方法,你只需要动态的改变结束的角度就可以实现动态的扇形loading。 2017-01-13 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

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

...了位置,宽高及九宫格的处理,供UI组件使用。 Hierarchy Graphics AutoBitmap Index Constructors constructor Properties _color uv Accessors cmds color height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLine...

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

18. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 74%]

... = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论 免费帖 --> 分享 微博 QZO...

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

19. 绘制圆形与扇形(JavaScript-LayaAir基础篇(JS)-矢量图) [ 73%]

...中心点坐标与半径,即可方便的通过LayaAir引擎laya.display.Graphics这个API的“drawCircle();”方法实现。该方法的详细说明如下图所示: ​ ![blob.png](img/1.png) ​ (图1) 下面我们用LayaAir引擎绘制一个圆形,示例代码如下: ```javascript (f...

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

20. laya.display.Graphics_API3.0 [ 72%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Graphics" Graphics Class Graphics Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save,restore,transform,scale,rotate,translate,alpha等指令对...

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