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
Transparent background #31
Comments
Ah yes! That would be quite handy, pixi.js is not set up for transparent backgrounds just yet, but will be super easy to change that :) |
thanks for the reply, can you give me a hint please, maybe i could help ;) |
You are more than welcome too help 👍 Here's a starting point for ya :) The background color is set here (line 78) in the canvas render:
and here (line 189) in the webGLRender:
|
better late than never! background transparency is now implemented..
|
@GoodBoyDigital This is great! I was literally just looking to implement this. Thanks! |
wow! ... was reserving my weekends to do this but thanks!! |
and... for those new to pixi.js... wow! sweet! |
I put
but my canvas is black anyway. Any ideas? |
@zur4ik if you are using v3,that is not the proper param for autoDetectRenderer. Check out the v3 docs: |
@zur4ik - I was having the same problem. For anyone else: var renderer = PIXI.autoDetectRenderer(256, 256, {antialias: false, transparent: true, resolution: 1}); |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
is there a way to have a transparent background?
thanks!
The text was updated successfully, but these errors were encountered: