大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
Laya_社区(258) Laya2.0_文档(42) Laya3.0_文档(24) Laya_示例(22) Laya2.0_示例(19) Laya3.0_api(10) Laya2.0_api(6) laya_api(1)
...hics.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.w; this._doll_area.h = doll_area.h; } // 设置容器的宽高 this.width = ...
来源: Laya_社区 发布时间: 20180515
...(); this.graphics.alpha(0.5); this.graphics.drawRect(-40, -110, 80, 110, "#ffcc00"); this.graphics.restore(); //再画一个红色小半透明区域 this.graphics.save(); this.graphics.alpha(0.7); this.graphics.drawRect(40, -110, 80, 110, "#ff0000"); this.graphics.restore();4个步骤缺少哪一个...
来源: Laya_社区 发布时间: 20161228
...rush: any = null (可选)刷子定义,支持以下设置{fillStyle:"#FF0000"}。 Default value pen: any = null (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 Returns DrawPathCmd drawPie drawPie(x: numb...
来源: Laya3.0_api 发布时间: 20231115
... "<u><a href='https://ask.layabox.com/event:'><font color='#ff0000'>如有问题请点击这里</font></a></u>"; htxt.addEventListener(TextEvent.LINK, linkHandler); private function linkHandler(evt:TextEvent) : void { ***********...
来源: Laya_社区 发布时间: 20170621
...canvas.context; cxt.beginPath(); cxt.fillStyle = "#FF0000"; cxt.fillRect(50,50,150,100, cxt.fillStyle); cxt.stroke(); 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20170425
...```typescript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调用。 1. 设置容器的autoSize为true。 ...
来源: Laya2.0_文档 发布时间: 20210714
...e.alignH = "center"; Laya.stage.bgColor = "#FF0000"; } } } ``` 运行效果如下图所示:  图(3)示例的运行结果 其他的对齐模式可以去修改AlignH和AlignV之中的值,在实际编码的过...
来源: Laya2.0_文档 发布时间: 20201010
..., -100, 39, 0, 58, 100, 78, 0, 97, -100, 117, 0, 136, 100, 156, 0], "#ff0000", 5);
来源: Laya_社区 发布时间: 20170802
... sp.height=100; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.MOUSE_OVER,this,onMouse); sp.on(Event.MOUSE_OUT,this,onMouse); Laya.stage.addChild(sp); Stat.show(); } ...
来源: Laya_社区 发布时间: 20170920
...: bluesky var sp:Sprite=new Sprite(); sp.graphics.drawLine(0,0,200,200,"#FFFFFF",5); Laya.stage.addChild(sp); sp.filters=[new GlowFilter("#FF0000",10,10,10)];1、发光滤镜只能再webGL模式下使用 2、滤镜只支持赋值给显示对象,graphics不是显示对象,故不支持滤镜的设...
来源: Laya_社区 发布时间: 20170313