大约有 7 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)
...Sprite(); img1.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/a...
来源: Laya_社区 发布时间: 20180621
... // 程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() { //初始化引擎 Laya.init(1334,75...
来源: Laya_社区 发布时间: 20180226
... IDE 请问文档里参考代码里的 美术资源在哪下载? private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20170620
...化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,...
来源: Laya_社区 发布时间: 20170825
...台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1...
来源: Laya_社区 发布时间: 20200522
...pe = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey2.png"); let m = new Laya.Matrix() m.skew(-0.25, 0) // ape.graphics.save() ape.graphics.transform(m) // ape.graphics.restore() let sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#ffffff") Laya.stage.addChild(sp); sp...
来源: Laya_社区 发布时间: 20170609
...ayscaleMat); var grayApe = new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe Sprite 的 子对象 这样都可以的! 2017-06-15 0 1 分享 微博 QZONE 微信 devilsome 赞...
来源: Laya_社区 发布时间: 20170615