大约有 770 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0067 秒)
Laya_社区(540) Laya3.0_api(65) Laya2.0_api(59) laya_api(55) Laya2.0_文档(30) Laya3.0_文档(11) Laya2.0_示例(5) Laya_示例(5)
...aya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff0000", 3); } } new Scene(); 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20190520
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...
来源: laya_api 发布时间: 20170929
...e.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chuanBox.height, "#FFFFEE", "#FFFFFF", 2); this.sageBox = new Laya.Rectangle(this.chuanBox.x+this.chuanBox.width/2,this.chuanBox.y+this.chuanBox.h...
来源: Laya_社区 发布时间: 20181026
...is, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp) var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = cMask //sp.addChild(cMask) //sp.removeChild(cMask) sp.pos(7,14) console.log(cMask.x...
来源: Laya_社区 发布时间: 20180710
...色块了private function test():void { var sp1:Sprite = new Sprite(); sp1.graphics.drawRect(0,0,300,200,"#ff0000"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2...
来源: Laya_社区 发布时间: 20181121
...; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*...
来源: Laya_社区 发布时间: 20180323
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。Component height : Number[override] 表示显示...
来源: laya_api 发布时间: 20170929
...变化 _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000"); _barImage.mask = null; _barImage.mask = _mask; 试过需要置mask为null,然后再设置一次,...
来源: Laya_社区 发布时间: 20170809
...节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;...
来源: Laya3.0_api 发布时间: 20231115
...Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ //创建一个实例 this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 this.switchImg();...
来源: Laya_社区 发布时间: 20180226