大约有 99 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
... + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask; this.changevalue = function(value) { this.targetvalue = value; target = parseInt(360 * valu...
来源: Laya_社区 发布时间: 20180725
...neColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 如何清除graphics绘制的矢量图 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 webgl 绘制graphics出报错 如何给Sprite的graphics绘制的线条添加发光滤镜? 小游戏开放数据域...
来源: Laya_社区 发布时间: 20180327
...除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E"); 绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么操作? 2017-11-19 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20171119
报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 版本编号1.7.17 //初始化Laya引擎 Laya.init(720, 1280, Laya.WebGL); //stage水平对齐方式 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //stage竖直对齐方式 Laya.stage.alignV = Laya.S...
来源: Laya_社区 发布时间: 20180524
...nds Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{r...
来源: Laya_社区 发布时间: 20170124
...nt.MOUSE_MOVE, this, mousemove); function mousemove(e) { drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ffffff") drawLayer.cacheAsBitmap; } 我的思路是每一次move都把对应的圆形区域绘制到一个容器上,这样一来drawcall就不会一直增加...
来源: Laya_社区 发布时间: 20160725
...如果我当前要制作一个转圈的圆弧, 我只能 this.sprite_gra.graphics.clear(); this.sprite_gra.graphics.drawPie(this.width / 2, this.height / 2, this.width, SkillIcon.START_NUM, this.end, "#000000"); 在定时器里,每次都擦除后再重新绘制一个圆弧吗? 没有一种思...
来源: Laya_社区 发布时间: 20171102
...人 jacksing888 • 2017-03-30 11:20 var containr = new Sprite(); containr.graphics.drawRect(0,0,200,200,'#ff0000') containr.size(200,200); containr.pivot(100,100); containr.x = 200 containr.y = 200 senceLayer.addChild(containr); var rect = new Rectangle(0,0,200,200); containr.scrollRect = rect; var...
来源: Laya_社区 发布时间: 20170329
...候可以实时的获取当前的鼠标移动轨迹,然后在配合调用graphics的drawCurves方法来绘制曲线轨迹,drawCurves的用法请参考下:http://layaair.ldc.layabox.com ... hapes 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20170211
cacheAs = "bitmap" 是不是有bug 用Sprite.graphics.fillBorderText()绘制一些文本,把这个Sprite.cacheAs = "bitmap" 就看不见文本了;请问官方人员这是不是bug,如果不是上面的情况要怎样才能看见文本? 2017-12-20 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20171220