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
If the opacity of an Actor's drawing/color is 0, don't draw the actor #875
Comments
I would like to handle this. |
If the opacity of an Actor's drawing/color is 0, don't draw the actor.
@tskull01 Go for it, I recommend refactoring visible to a getter/setter pair and implementing the logic in the setter. |
Issue excaliburjs#875 fix
@tskull01 let me know if you would like any assistance |
@eonarheim Can i handle this issue ? |
Fixed a bug where Actors with opacity or color alpha set to 0 still get rendered. Resolves: excaliburjs#875
Is this issue still open? |
@SirKitboard It is! All yours! There are a couple approaches, hooking into the internal _postupdate and checking the Actor's color opacity then setting visible or not may make the most sense. |
Context
If an Actor's
currentDrawing
orcolor
has it's opacity set to 0, the Actor will still draw transparent pixels to the canvas.Proposal
Set
Actor.visible
to false if the Actor's drawing or color is 100% transparent, to prevent transparent pixels from being drawn.The text was updated successfully, but these errors were encountered: