egret-labs / egret-examples Goto Github PK
View Code? Open in Web Editor NEWegret-examples
egret-examples
现在对js版本支持怎么样?来个js版本的?
bash-3.2$ egret build EUIExample -e
您正在使用白鹭编译器 5.2.29 版本
扫描项目列表
Error /Users/yonghu/all/luochen/work/egret-examples/EUIExample/src/Main.ts (39,36): Cannot find name 'components'.
请问如上问题是如何造成的,如何解决呢?
位置:coreExample/src/egret/display/Mask.ts
运行例子发现Mask的例子出现错误.说是找不到宽度.
这问题的可能
原因是:imageLoader.load
加载的资源不能正确转换成bitmap,需要中间转换一下texture才能使用.
我的结局方法:
var larkBitmapData = new egret.Texture();
larkBitmapData._setBitmapData(images["resource/assets/lark.png"]);
var productsBitmapData = new egret.Texture();
productsBitmapData._setBitmapData(images["resource/assets/blendModeBG.jpg"]);
var productBmp = new egret.Bitmap(productsBitmapData);
各位大佬,我有一个不懂得地方,拿到的资源有时候不能这样用,不知道什么问题:
new egret.Bitmap(RES.getRes("xxx.png"))
忘各位大佬指北....
现在对js版本支持怎么样?来个js版本的?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.