pixijs / layers

Separate the z-hierarchy of your scene tree from its canonical structure.
https://pixijs.io/layers/docs/
MIT License
224 stars 57 forks source link

How to Set a Clear Colour #90

Open TyroTheFox opened 1 year ago

TyroTheFox commented 1 year ago

What is an 'ArrayLike' value and what is it supposed to look like? I've been attempting to see if I can set one that matches that of the PNG assets I have on file and it's rendering the entire screen as black (or possibly invisible). The assets I have simply have a normal transparent colour of something like '0x000000' with an Alpha of 00 (0x00000000). I'm trying to do this as I'm noticing that these assets with 'baked-in' alpha aren't being rendered this way across all layers, just the one it's currently sitting in.

I've tried 'clearColor = [0x00000000]' and 'clearColor = [0x000000]'. Both render the entire screen as black.

There something I'm missing?