大约有 986 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
Laya_社区(608) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30; txt.on("click", this, onTxtClick); Laya.stage.addChild(txt); //实例一个小人,放到右上角,并相对布局 var boy1 = new Image(); boy1.skin = "../../res/cartoonCharacters/1.png"; bo...
来源: Laya_示例 发布时间: 20251130
...cale(Laya.Browser.pixelRatio, Laya.Browser.pixelRatio); changeActionButton.pos(Laya.stage.width / 2 - changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { //根据名称播放动画 zom...
来源: Laya_示例 发布时间: 20251130
...tage.addChild(sp); //将sp移动到横坐标400,纵坐标300的位置 sp.pos(400,300); //绘制两条在sp的原点交叉的直线 sp.graphics.drawLine(-50,0,50,0,'#00ff00',1); sp.graphics.drawLine(0,-50,0,50,'#00ff00',1); //绘制以sp的原点为中心,半径40的圆 sp.graphics.drawCircle(0,0...
来源: Laya_社区 发布时间: 20180524
...t = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); this.txt.fontSize = 30; this.txt.on("click", this, this.onTxtClick); Laya.stage.addChild(this.txt); //实例一个小人,放到右上角,并相对布局 let boy1 = new Image(); boy1.skin = "res/cartoonCharact...
来源: Laya2.0_示例 发布时间: 20251130
...interactionArea.graphics.clear(); this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000"); 附件 : --> 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20171222
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170929
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170929
...:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footp...
来源: Laya_社区 发布时间: 20171113
... txt.strokeColor = "#ffffff"; txt.pos(60, 100); Laya.stage.bgColor = "#ffff00"; Laya.stage.addChild(txt); } } } 2017-10-25 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: LayaAi...
来源: Laya_社区 发布时间: 20171025
...hildren():void 销毁所有子对象,不销毁自己本身。 Node dispose():void 销毁对象并释放加载的皮肤资源。 Image drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas 绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas...
来源: laya_api 发布时间: 20170929