wonchwonch

Use Textures loaded by Loader in CSS?

Recommended Posts

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? 

Share this post


Link to post
Share on other sites

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 by ivan.popelyshev

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.