Transparent background HTML5


#1

Hello,

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

Thanks


#2

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


#3

I think you can by doing the following:

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

or maybe

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

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

it work, thanks.


#5

It seems that it is not working anymore.


#6

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


#7

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