Skip to content
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 #608

Open
GarboMuffin opened this issue Dec 8, 2022 · 2 comments
Open

Transparent background #608

GarboMuffin opened this issue Dec 8, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@GarboMuffin
Copy link
Member

GarboMuffin commented Dec 8, 2022

useful when embedding into another page

@GarboMuffin GarboMuffin added the enhancement New feature or request label Dec 8, 2022
@UUoocl
Copy link

UUoocl commented Sep 5, 2023

I'm looking forward to this enhancement. I tried to edit the script from the packager output. Changing the background color was easy, but I couldn't figure out how to change the alpha.

@UUoocl
Copy link

UUoocl commented Sep 7, 2023

After further reading, I've learned how to set the background to be transparent on files created by the packager.

  1. change alpha: !1 to alpha: 1
  2. change .clearColor(...this._backgroundColor4f) to .clearColor(0,0,0,0)

These values appeared multiple times in the packager output.

If the packager creates a "Plain HTML (standalone, works anywhere)" file, then these values are in the .html file.
If the packager creates a "Zip (ideal for websites)", then the values are in the script.js file.

Changing these values in the standalone packager will produce transparent backgrounds.

I don't how to add this as an option in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants