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

大约有 71 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0033 秒)

1. Sprite-新手引导 [ 100%]

...{ var step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(step.x, step.y, step.radius, "#000000"); tipContainer.graphics.clear(); tipContainer.loadImage(step.tip...

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

2. Sprite-新手引导 [ 99%]

...} let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(step.x, step.y, step.radius, "#000000"); tipContainer.graphics.clear(); tipContainer.loadImage(step.tip...

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

3. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 98%]

...plateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUS...

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

4. LayaAir引擎与原生Flash的差异文档说明! [ 96%]

...mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask2、动态遮罩 var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=ne...

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

5. Sprite-绘制各种形状 [ 95%]

...Poly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 11...

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

6. Sprite-绘制各种形状 [ 95%]

...Poly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 sp.graphics.drawPath(400, 310, [ ["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 11...

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

7. sprite添加click监听事件反应迟钝 [ 92%]

...加click监听事件反应迟钝 代码如下,如果用drawyuan.graphics.drawCircle(0,0,50,"#232628");则会点击反应非常迟钝,如果用loadimg的话,反应很快; function drawCirle() { var drawyuan = new Laya.Sprite(); // drawyuan.graphics.drawCircle(0,0,50,"#232628");//反应非常...

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

8. 类似抠图、挖空效果的实现 [ 91%]

...  var circle:Sprite = new Sprite();             circle.graphics.drawCircle(0, 0, 50, "#ffff00");             circle.pos(50, 50);             //设置叠加模式             circle.blendMode = "destination-out";             box.addChild(circle);     ...

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

9. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 90%]

...Rect(0, 0, 300,300, "#ff0000"); var unhit:Graphics = new Graphics(); unhit.drawCircle(150, 150, 50, "#ff0000"); var area:HitArea = new HitArea(); area.hit = hit; area.unHit = unhit; guideContainer.hitArea = area; guideContainer.mouseEnabled = true; var sp1:Sprite = new Sprite(); sp1.graphics.drawRec...

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

10. 输入设备-指南针 [ 89%]

...ionIndicator); directionIndicator.alpha = 0.8; directionIndicator.graphics.drawCircle(0, 0, 70, "#343434"); directionIndicator.graphics.drawLine(-40, 0, 40, 0, "#FFFFFF", 3); directionIndicator.graphics.drawLine(0, -40, 0, 40, "#FFFFFF", 3); directionIndicator.x = compassImg.x; directionIndicator.y ...

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