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

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

91. layabox支持rgba颜色吗 [ 73%]

...下方式替代 varsp:Sprite=new Sprite(); sp.graphics.save(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); sp.graphics.alpha=0.4; sp.graphics.restore(); Laya.stage.addChild(sp); 2017-02-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ...

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

92. 鼠标交互-拖动 [ 72%]

...dthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } function onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) ape.startDrag(dragReg...

来源: Laya_示例 发布时间: 20251130

93. 混合模式-Lighter [ 72%]

...; } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //obj.g = Math.floor(obj.g);...

来源: Laya_示例 发布时间: 20251130

94. 最新的1.6.2beta版本的Graphics绘画图形API有bug [ 72%]

...标出现问题相对于父节点对象的坐标会发生变化,经测试drawRect、drawCircle、drawPie、drawPoly均出现问题 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来...

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

95. laya.display.Graphics [ 72%]

...eColor:* = null, lineWidth:Number = 1):void 绘制多边形。 Graphics  drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:N...

来源: laya_api 发布时间: 20170929

96. graphics颜色填充fillColor问题 [ 72%]

...dient.addColorStop(0,"white"); gradient.addColorStop(1,"red"); sp.graphics.drawRect(0, 0, 150, 150, gradient); sp.graphics.loadImage("res/colorpicker_overlay.png",0,0); //添加到舞台 Laya.stage.addChild(sp);第二个问题:目前还不支持,后面安排在Canvas模式和Webgl模式都会支...

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

97. 混合模式-Lighter [ 72%]

...BgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //obj.g = Math.floor(obj.g); bgC...

来源: Laya2.0_示例 发布时间: 20251130

98. 在一个矩形之上画另一个矩形,只显示一个矩形 [ 72%]

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

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

99. 鼠标交互-拖动 [ 72%]

...dthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dragRegion,...

来源: Laya2.0_示例 发布时间: 20251130

100. 请问LayaAir如何绘制一个渐变矩形? [ 72%]

...变矩形? 请问LayaAir如何绘制一个渐变矩形? this.graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 ...

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