Comments (6)
含有白色背景的图,加上hasAlpha: true属性试试
Easycanvas.webglShapes.custom({ ... , hasAlpha: true});
文档貌似忘了提这一块,后续补上。
from easycanvas.
按照您说的,我更新了一下demo,好像还是不生效
代码还是在原地址: https://cyitianyou.github.io/easycanvas-demo/demo.html
from easycanvas.
好的,等下班有空了我查查哈
from easycanvas.
感谢!那您先忙!
另外还得再咨询一下您,Easycanvas有提供整个界面保存成图片的API吗?
我试过$app.$dom.toBlob
或者$app.pause(); $app.$dom.toBlob
得到的都是一张空白的图片
from easycanvas.
您好!白色背景的问题解决了,是我自己的问题!
我把背景图和组件图的z坐标都设置成0了,可能会相互影响,我把组件图的z坐标设为1,再加上您说的hasAlpha: true属性就可以了!
再次感谢您的支持!
from easycanvas.
好的,都是0的情况下确实有个bug,这个下个版本会修复。
保存成图片,可以对canvas用toDataURL这个API,是浏览器提供的API。
from easycanvas.
Related Issues (20)
- 那个 chrome 工具是怎么弄的呀 HOT 3
- 事件冒泡最好符合业内程序标准设计 HOT 1
- demo有JS报错误 HOT 1
- 大佬,不支持 vue引入吗? HOT 1
- API 为什么都没了? HOT 3
- 求api啊 HOT 1
- 请问下容器可不可以为圆形? HOT 1
- vue里面咋引入插件啊?现在报错了,应该是有个插件没引入,不知道咋引入啊
- 如何设置样式啊?没有文档吗?样式的参数没有文档? HOT 7
- 有没有Easycanvas.webglShapes.custom使用纹理贴图的demo呀? HOT 2
- Chrome任务管理器显示GPU内存过高的问题 HOT 6
- IOS 平台 点击事件偏移 HOT 3
- [BUG] HOT 4
- [BUG]node方式引入根本不能用。。。。
- [BUG]在配置比较低的win平台上, 使用chrome浏览器 发现闪屏问题
- 开发文档还会继续更新么? HOT 2
- 微信小游戏兼容问题 HOT 6
- 没有作者详细信息
- 事件的return true机制不起 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easycanvas.