大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
...路径 ]; //绘制梯形 lineSpr.graphics.drawPath(0, 0, path, {fillStyle: color}, {"strokeStyle": color, "lineWidth": "1"}); 初始得出梯形的上顶边宽度是:0.001523 像素 这时候梯形高度是1186 像素 但是 画的不完整。感觉到了一半就断了。 2018-07-17 添...
来源: Laya_社区 发布时间: 20180717
...Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on("click", this, this.onStageClick); } private createMap(): void { this.tiledMap = new TiledMap(...
来源: Laya_社区 发布时间: 20201230
...le touch { /** * 颜色工具类 */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilt...
来源: Laya_社区 发布时间: 20180930
...i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190531
...新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "...
来源: Laya_社区 发布时间: 20180417
...nXLabel.text = `minX: ${this.playerScript.mapMinX}`; minXLabel.color = "#FFFFFF"; minXLabel.pos(this.playerScript.mapMinX, this.playerScript.mapMinY - 20); this.owner.addChild(minXLabel); const maxXLabel = new Laya.Text(); maxXLabel.text ...
来源: Laya_社区 发布时间: 20251125
...0; Laya.Tween.to(letterText,{y:100,update:new Laya.Handler(this,this.changeColor,[letterText])},3000,Laya .Ease.backOut,Laya.Handler.create(this,this.onEaseComplete),1000,null,true); function onEaseComplete(){ console.log("ease complete"); } function changeColor(text){ console.log("update"); var c =...
来源: Laya_社区 发布时间: 20180620
... <title>五十音图对对碰</title> </head> <body bgcolor="gainsboro"> </body> <script src="libs/laya.core.js"></script> <script src="linkgame.js"></script> </html> 再建立个linkgame.js,用下列代码进行初始化。个人建议...
来源: Laya_社区 发布时间: 20160623
... extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*0.5; private var endTime:int; private var c...
来源: Laya_社区 发布时间: 20171124
...Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: http://www.w3school.com.cn/jsref/jsref_tof...
来源: Laya_社区 发布时间: 20180326