Transparent background HTML5


when I export to HTML5, is-it possible to have a transparent background ?


I don’t know if this is possible by default. If not, you can always use templates.

I think you can by doing the following:

<window background="null" if="html5" />

or maybe

<window background="0x00000000" if="html5" />
<window background="null" if="html5" />

it work, thanks.

1 Like

It seems that it is not working anymore.

I did a test, and it does appear to be working. However, the default HTML template sets a black background (for use with letter-boxing)

I did a quick test with a red window background, and removed the #openfl-content background, and OpenFL content did have a transparent background

Oh why I didn’t see that it was just a matter of css. Thanks.