Share Posted February 10, 2022 Hi all, how can i change with timeline the backgroundColor of the PIXI.Application? const app = new PIXI.Application({ backgroundColor: 0x1099bb, resizeTo: window }); THanks Link to comment Share on other sites More sharing options...
Solution Solution Share Posted February 10, 2022 Hi TELLO, The PixiPlugin is only designed to work with DisplayObjects. It would probably be easier if you just had an blank sprite that filled up the screen and animated that color. GSAP will automatically detect colors, but only if they are a string, and PixiJS uses numbers, so you could just convert the color to a string, animate that color on a proxy object, and then apply the changes to the renderer. This could be optimized more, but it's just a quicky example. See the Pen ZEaKRxg by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now