大约有 22 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)
... this.sprite = new Sprite(); this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color); this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color); this.sprite.graphics.drawLine(-radiusX, radiusY, 0, radiusY * 2, c...
来源: Laya_社区 发布时间: 20201230
... 2018-02-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, 2...
来源: Laya_社区 发布时间: 20180211
...d { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics.drawCurves(352, 58, [0, 0, 19, -100,...
来源: Laya_社区 发布时间: 20180115
...图1-1所示。 (动图1-1) 在IDE中可以通过这些选项来绘制Graphics,如图1-2所示, (图1-2) LayaAir引擎中 laya.display.Graphics 类可以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... ...
来源: Laya3.0_文档 发布时间: 20231129
...l里面呢? sp = new Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...
来源: Laya_社区 发布时间: 20190530
layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...
来源: Laya_社区 发布时间: 20180510
laya.display.Sprite.graphics对象的旋转问题 我用laya.display.Sprite.graphics对象绘制了一条线,我想让其按线的初始点旋转 ,或者结束点为原点旋转。但是我用了graphics方法下的rotate做旋转是,无法rotate(90,0,0)旋转,设置rotate(90,1,0)...
来源: Laya_社区 发布时间: 20170424
如何给Sprite的graphics绘制的线条添加发光滤镜? 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: bluesky var sp:Sprite=new Sprite(); sp.graphics.drawLine(0,0,200,2...
来源: Laya_社区 发布时间: 20170313
... y+=this._charSize.height; this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1); } y 如果 y+=this._charSize.height/2; 就是中划线 可以自己加个变量 控制 例如 linethrough 如果是 true...
来源: Laya_社区 发布时间: 20171019
... this._box = box; this._fly_site.w = this._box._area.w - 20; this._box.graphics.drawLine( 0, this._fly_site.h, this._box._area.w, this._fly_site.h, "#ff0000", 1 ); // 当更新房间时 if( this._doll_area.w != doll_area.w || this._doll_area.h != doll_area.h ) { this._doll_area.w = doll_area...
来源: Laya_社区 发布时间: 20180515