大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)
Laya_社区(974) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3)
...链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是sp.graphics.clear(); 2017-10-19 0 2 分享 微博 QZONE 微信 laya21126 赞同来自: /** * 初始化 地图 */ public function initMap(texture:Texture, bgID:int):void{ ...
来源: Laya_社区 发布时间: 20171019
...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...
来源: Laya_社区 发布时间: 20200421
...下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。 附件 : --> 2017...
来源: Laya_社区 发布时间: 20170216
...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...
来源: Laya_社区 发布时间: 20170628
...e(); imgSprite.x = 300 imgSprite.graphics.drawTexture(imgTextTure,0,0); avatarContainer.addChild(imgSprite); var mask = new Sprite(); mask.graphics.drawCircle(50,50,50,"#00ffff") ...
来源: Laya_社区 发布时间: 20170209
...unction CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 pr...
来源: Laya_社区 发布时间: 20170822
...ight); } showFight(num: number): void { if (this._sprFight) this._sprFight.graphics.clear(); this._sprFight = bigao.utils.TextrueUtils.getNumberByUrl(resourcesCenter.ResourcesPathStr.FIGHT_NUMBER_PATH_PNG, num.toString()); this._sprFight.x = 600; this._sprFight.y = 150; this.addChild(this._sprFight)...
来源: Laya_社区 发布时间: 20170916
...:void{ ChangeSize(); if(_tip) _tip.destroy(); _tip = new Sprite(); _tip.graphics.drawRect(0,0,100,100,"#FFFFFF"); _tip.size(100,100); Laya.stage.addChild(_tip); Tween.to(_tip,{y:Browser.height - _tip.height,x:Browser.width-_tip.width},2000,null); } } } 附件 : --> 2019-05-20 添加评...
来源: Laya_社区 发布时间: 20190520
... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...
来源: Laya_社区 发布时间: 20180728
...templet.getTotalkeyframesLength(index)); } let graphics = armature._getGrahicsDataWithCache(index, frame); graphics ? armature.graphics = graphics : armature._createGraphics(frame); } } 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181115