• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 382 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)

181. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 61%]

...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

182. graphics透明度设置详细步骤 [ 61%]

...(); 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

183. laya.display.Graphics_API3.0 [ 60%]

...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

184. htmlText的TextEvent.LINK如何实现 [ 60%]

... "<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

185. 怎么显示进来 [ 60%]

...canvas.context;         cxt.beginPath();         cxt.fillStyle = "#FF0000";         cxt.fillRect(50,50,150,100, cxt.fillStyle);         cxt.stroke(); 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

来源: Laya_社区 发布时间: 20170425

186. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 60%]

...```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

187. 对齐模式:水平对齐与垂直对齐(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 60%]

...e.alignH = "center";               Laya.stage.bgColor = "#FF0000";         }     } } ``` 运行效果如下图所示: ​ ![blob.png](img/3.png) ​ 图(3)示例的运行结果 其他的对齐模式可以去修改AlignH和AlignV之中的值,在实际编码的过...

来源: Laya2.0_文档 发布时间: 20201010

188. laya什么时候会加入 Graphics Arc (画弧线)功能 [ 60%]

..., -100, 39, 0, 58, 100, 78, 0, 97, -100, 117, 0, 136, 100, 156, 0], "#ff0000", 5);

来源: Laya_社区 发布时间: 20170802

189. 关于mouseover的问题 [ 60%]

...  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

190. 如何给Sprite的graphics绘制的线条添加发光滤镜? [ 60%]

...: 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