Transparent Background For Extension With A Second Canvas #751
Unanswered
PURPL3-CAT
asked this question in
Q&A
Replies: 3 comments 2 replies
-
yo this looks super cool. |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is a block in Canvas Effects that allows you to set the transparency of the stage. (Only the stage, sadly) Link to the PR: #747 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Update: the only way is if the WebGL context is created with alpha: true. I'll look for other solutions such as rendering the second canvas as a sprite on the main canvas. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently making an extension that adds BabylonJS to TurboWarp. It works by adding another canvas behind the stage and rendering to that. The background is opaque, and I have to use a custom build of scratch-render. My extension works fine on my local build, but I want to move to using regular TurboWarp (especially if I share it, which I plan to do if I can). If anyone knows a solution (push to the actual scratch-render repo, overwrite the render code from the extension, etc..), that would be very helpful!
Beta Was this translation helpful? Give feedback.
All reactions