大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0042 秒)
Laya_社区(84) Laya2.0_文档(11) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_示例(3) Laya_示例(3) Laya2.0_api(3) laya_api(2)
...示。 Graphics destroy():void[override] 销毁此对象。 AutoBitmap drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):Draw...
来源: Laya2.0_api 发布时间: 20190513
...age.frameRate=Laya.Stage.FRAME_SLOW; var sp=new Laya.Sprite(); sp.graphics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); (图3-1) 此时FPS显示30,并且在鼠标移动时,可以...
来源: Laya3.0_文档 发布时间: 20251010
...遮罩 let mask = new Laya.Sprite(); sprite.addChild(mask); mask.graphics.drawCircle(200, 200, 100, "#FFFFFF"); //图片添加遮罩 setTimeout(() => { sprite.mask = mask;//等待1秒执行遮罩 }, 1000); 运行效果如下: (动图3-5) 3.4.6 设置点击区hitArea 鼠标操作相关属性...
来源: Laya3.0_文档 发布时间: 20251010
...括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("tou...
来源: Laya_社区 发布时间: 20161109
...ds IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: 二十、自定义资源的导...
来源: Laya3.0_文档 发布时间: 20251010