Jump to content

black instead transparent background


trinoo
 Share

Recommended Posts

Hello, sorry guys for probably the lama question, but how to set a transparent background?

Please take a look at animation here: http://trinoo.cz/lair/

I have set red background color for HTML body in CSS file here: https://trinoo.cz/lair/css/main.css and used backgroundAlpha: 0 option when setting up a renderer (Pixi 5.3.11) in js file here https://trinoo.cz/lair/js/pixiapp.js, so I should see red color when painting is not covering entire viewport (it keeps its aspect ratio, but canvas fills entire viewport), but I can see black instead, why? What am I doing wrong? Thanks.

 

Edited by trinoo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...