packager icon indicating copy to clipboard operation
packager copied to clipboard

Transparent background

Open GarboMuffin opened this issue 3 years ago • 4 comments

useful when embedding into another page

GarboMuffin avatar Dec 08 '22 21:12 GarboMuffin

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 avatar Sep 05 '23 23:09 UUoocl

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.

UUoocl avatar Sep 07 '23 01:09 UUoocl