大约有 246 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...如果我当前要制作一个转圈的圆弧, 我只能 this.sprite_gra.graphics.clear(); this.sprite_gra.graphics.drawPie(this.width / 2, this.height / 2, this.width, SkillIcon.START_NUM, this.end, "#000000"); 在定时器里,每次都擦除后再重新绘制一个圆弧吗? 没有一种思...
来源: Laya_社区 发布时间: 20171102
graphics.drawRect过多会导致程序奔溃 实现了个粉笔的效果, 思路是在一条线上(graphics.drawLine)绘制随机绘制背景颜色的矩形(graphics.drawRect); 但是画一会就会出现明显的性能克顿, 再持续画下去就直接奔溃了; canvas中每画完一笔...
来源: Laya_社区 发布时间: 20170719
...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...
来源: Laya2.0_api 发布时间: 20190513
...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...
来源: laya_api 发布时间: 20170929
同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(之前发起的问题不知道为什么找不到) 顶点数超过65535 / 4会抛出错误这个知道,有没有办法绕开这个报错 尝试过draw 10000个点的时候,把a的纹理取...
来源: Laya_社区 发布时间: 20181113
layaAir 提供了graphics.drawPie方法,你只需要动态的改变结束的角度就可以实现动态的扇形loading 我想问一下,我需要怎么动态修改这个结束角度呢?是每次都去drawPie吗?前面的参数一样,只是修改那个结束角度吗? 如果是这样的...
来源: Laya_社区 发布时间: 20170606
用sprite.graphic.draw出一个图形,能否在代码中改变此图形的颜色 2017-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以先调用sprite.graphics.clear(),然...
来源: Laya_社区 发布时间: 20170605
...游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先...
来源: Laya2.0_文档 发布时间: 20210715
...er.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanvas(iconSpr.width,iconSpr.height,0,0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true);...
来源: Laya_社区 发布时间: 20180113
...lic/Protected All Inherited Externals Only exported Menu Globals "laya/ani/GraphicsAni" GraphicsAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage dra...
来源: Laya3.0_api 发布时间: 20231115