大约有 52 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
...plateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUS...
来源: Laya_社区 发布时间: 20180308
...mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask2、动态遮罩 var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=ne...
来源: Laya_社区 发布时间: 20170207
...加click监听事件反应迟钝 代码如下,如果用drawyuan.graphics.drawCircle(0,0,50,"#232628");则会点击反应非常迟钝,如果用loadimg的话,反应很快; function drawCirle() { var drawyuan = new Laya.Sprite(); // drawyuan.graphics.drawCircle(0,0,50,"#232628");//反应非常...
来源: Laya_社区 发布时间: 20170905
... var circle:Sprite = new Sprite(); circle.graphics.drawCircle(0, 0, 50, "#ffff00"); circle.pos(50, 50); //设置叠加模式 circle.blendMode = "destination-out"; box.addChild(circle); ...
来源: Laya_社区 发布时间: 20161122
...Rect(0, 0, 300,300, "#ff0000"); var unhit:Graphics = new Graphics(); unhit.drawCircle(150, 150, 50, "#ff0000"); var area:HitArea = new HitArea(); area.hit = hit; area.unHit = unhit; guideContainer.hitArea = area; guideContainer.mouseEnabled = true; var sp1:Sprite = new Sprite(); sp1.graphics.drawRec...
来源: Laya_社区 发布时间: 20170710
... this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0); function on_down(event) { console.log("_____ kbRing2\n"); } } function laya_test() { ...
来源: Laya_社区 发布时间: 20161221
...11 15:44 public static SymbolRoot(sp: Laya.Sprite, cfg: any) { sp.graphics.drawCircle(0, 0, 20, "#ffffff", "#000000", 3); sp.graphics.drawLine(-20, -20, 20, 20, "#000000", 3); } public static SymbolSeq(sp: Laya.Sprite, cfg: any) { sp.graphics.drawLine(-20, 0, 20, 0, &qu...
来源: Laya_社区 发布时间: 20180211
... //消除锯齿,直接画圆, this.cls.graphics.drawCircle(e.stageX,e.stageY,10,"#ff0000"); this.startPoint= new Laya.Point(e.stageX,e.stageY); } 2022-09-23 2 0 分享 微博 QZONE 微信 1663993644用户 赞同来自: 学习了 2022-10-0...
来源: Laya_社区 发布时间: 20220920
...e(); sprite.pos(500,500); var graphics:Graphics = new Graphics(); graphics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,5...
来源: Laya_社区 发布时间: 20190515
... = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10, "#fff333"); //位置偏移 sprite.graphics.drawCircle(texture.width/2 - x/scaleRatio, texture.height/2 - y/scaleRatio, 10, "#fff333"); //位置正确 sprite.scale(scaleRatio, ...
来源: Laya_社区 发布时间: 20170821