大约有 382 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
Laya_社区(258) Laya2.0_文档(42) Laya3.0_文档(24) Laya_示例(22) Laya2.0_示例(19) Laya3.0_api(10) Laya2.0_api(6) laya_api(1)
...一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.pos(Laya.stage.mouseX, Laya.stage.mous...
来源: Laya_社区 发布时间: 20180313
...0;i+=2){ sp.graphics.drawLine(1+(4*i), 58, 1+(4*i)+4, 58, "#ff0000", 3); } 2017-04-24 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 楼上回答的很对,目前没有直接的虚线接口,所谓的虚线,就是连续绘制有间隔的直线。...
来源: Laya_社区 发布时间: 20170423
...找对应的json文件找不到 发现version.json里配的是Map192e06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{ constructor(){ super(); } //初始化预加载数据 ...
来源: Laya_社区 发布时间: 20180615
...例子是: var bmd1:BitmapData = new BitmapData(40, 40, false, 0x000000FF); var bmd2:BitmapData = new BitmapData(80, 40, false, 0x0000CC44); var rect:Rectangle = new Rectangle(0, 0, 20, 20); var pt:Point = new Point(10, 10); bmd2.copyPixels(bmd1, rect, pt); var bm1:Bitmap = new Bitmap(bmd1); this....
来源: Laya_社区 发布时间: 20151105
...罩圆形半径 cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域 cMask.pos(this.x+r, this.y+r); this.mask = cMask; //不加这一行图片正常显示,但是方图 //Laya.stage.addChild(cM...
来源: Laya_社区 发布时间: 20181119
...v:HTMLDivElement=new HTMLDivElement(); htmlDiv.innerHTML='<span color="#FF0000">哈哈哈</span><span color="#FFFF00">嘻嘻嘻</span>'; Laya.stage.addChild(htmlDiv); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20170505
...t: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, borderRadius: 4 } }) 这种利用微信接口创建的按钮对象赋值给button 的怎么弄 __JS__('wx').createUserInfoButton({}) 可以这样写 前面的butto...
来源: Laya_社区 发布时间: 20180728
...eight: 98*0.45, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, bor...
来源: Laya_社区 发布时间: 20190109
...以下是测试代码 var i:int; var spr:Sprite; var colors:Array = ["#FF0000","#FFFF00"]; for (i = 0; i < 31; 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(s...
来源: Laya_社区 发布时间: 20180323
...r(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name=="'jump'") { trace('jump'); } else if(tEventDat...
来源: Laya_社区 发布时间: 20170406