大约有 229 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Laya_社区(174) Laya2.0_示例(20) Laya_示例(18) Laya2.0_文档(9) Laya3.0_api(3) Laya3.0_文档(3) laya_api(1) Laya2.0_api(1)
...7, -100, 117, 0, 136, 100, 156, 0], "#ff0000", 5); //画矩形 sp.graphics.drawRect(10, 166, 166, 90, "#ffff00"); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 78.48, 57, 30, 93.48, -18.48, 57], "#ffff00"); //画三角形 sp.graphics.drawPoly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff...
来源: Laya_示例 发布时间: 20251130
...7, -100, 117, 0, 136, 100, 156, 0], "#ff0000", 5); //画矩形 sp.graphics.drawRect(10, 166, 166, 90, "#ffff00"); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 78.48, 57, 30, 93.48, -18.48, 57], "#ffff00"); //画三角形 sp.graphics.drawPoly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff...
来源: Laya2.0_示例 发布时间: 20251130
...1 2、代码的写法: var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; 2017-04-28 0 0 ...
来源: Laya_社区 发布时间: 20170428
...(); Laya.stage.addChild(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000"); g. alpha()这个方法有bug吧,设置之后出现的结果不对,并不是设定的透明度!! !!而且有个很有意思的问题,把Laya.stage.scaleMode = "noscale"...
来源: Laya_社区 发布时间: 20161219
...用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel); 这个是我的代码,sp是一个精灵,放在panel的0,0点后确实是不显示,往右下移一个像素后就能显示出来了 2017-02-20 0 0 分享 微...
来源: Laya_社区 发布时间: 20170217
...ing • 2017-02-22 17:13 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hita...
来源: Laya_社区 发布时间: 20170215
...ot.__super.call(this); this.size(200,200); this.graphics.drawRect(0,0,200,200,'#123456'); var viewPort = new Rectangle(0,0,200,200); this.viewport = viewPort; var ccc = new Sprite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); t...
来源: Laya_社区 发布时间: 20170323
...); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite;...
来源: Laya_示例 发布时间: 20251130
...); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite;...
来源: Laya_示例 发布时间: 20251130
...); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite;...
来源: Laya_示例 发布时间: 20251130