大约有 17 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0036 秒)
...r height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save sc...
来源: Laya3.0_api 发布时间: 20231115
...400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 this.sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 this.sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 this.sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["a...
来源: Laya_社区 发布时间: 20180115
...标不显示。 Graphics destroy():void 销毁此对象。 Graphics 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):Dra...
来源: Laya2.0_api 发布时间: 20190513
...子里放圆圈怎么弄? cyqcyqcyq • 2017-12-30 15:42 再用graphics.drawCircle(0, 0, 5, "#000000")即可 cyqcyqcyq • 2017-12-30 16:25 @gaowei2024:676748318 casd12222003d • 2017-12-30 22:35 @gaowei2024:用程序去画图,这个我只在TC的时候干过,现在都是用图片...
来源: Laya_社区 发布时间: 20171230
...le最为遮罩给图片就可以了 var sp:Sprite=new Sprite() sp.graphics.drawCircle(0,0,50,"#FF0000") img.mask=sp; 2017-01-07 7 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ytd7777 相关问题 微信关系链:LayaAir引擎针对微...
来源: Laya_社区 发布时间: 20170107
...遮罩 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