wonchwonch Posted November 2, 2019 Share Posted November 2, 2019 Hi all, i'm developing a hybrid application that uses both the DOM and Pixi.js. Is there any way to use the textures loaded by the Loader class in CSS backgrounds, perhaps by converting them into data URIs? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 2, 2019 Share Posted November 2, 2019 (edited) I'm not expert on html+css, but maybe you know the way to take image from css to javascript side? I don't and i didnt see anything in canvasrenderingcontext2d to hack it . Of course the idea itself is good, i used something like that: same atlas definitions parsed into pixijs and to css to use same names in angular interface Edited November 2, 2019 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.