-
Notifications
You must be signed in to change notification settings - Fork 70
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
Create a CanvasSpace with transparent color #24
Comments
Edit: Transparent colors should work. It's just that stack every time your canvas is updated. In your case, the background color should quickly fade to black. Related to this line not being called. In other words, Pt currently either paints over your canvas (with A quick fix could be to always clear the canvas: @ctx.clearRect( 0, 0, @size.x, @size.y )
if @bgcolor
@ctx.fillStyle = @bgcolor;
@ctx.fillRect( 0, 0, @size.x, @size.y ) |
Yep, if I put 'rgba(0,0,0,0.0)' it wont clear the canvas, instead I can see all the movement without clear. |
@amorino There's probably a bug somewhere that the Meanwhile, if you call
Then inside the
See if that works for now? We'll hunt down the bug. Thanks! |
This bug should be fixed now. You can set a transparent background via |
To get this to work I had to set |
Is it possible to create a CanvasSpace with transparent background?
I'm currently using
new CanvasSpace('id').setup({ bgcolor: 'rgba(0,0,0,0.1)' });
with no luck
Thanks!
The text was updated successfully, but these errors were encountered: