-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported PNG not transparent #56
Comments
You need to add a clearRect and then also set to same height and width of your canvas. |
You are right. According to the spec a canvas is transparent by default. I've confirmed this experimentally as well. I've just pushed back a change which makes the bitmap be clear by default. This should automatically work with exported PNGs as well. Note that the spec also indicates you can create an opaque canvas by passing an option to getContext(). We should support this in the future. https://html.spec.whatwg.org/multipage/canvas.html#the-canvas-element |
Expected Behaviour
Actual Behaviour
Results an opaque black PNG.
The text was updated successfully, but these errors were encountered: