Jump to content

Render image pixel by pixel


thiezar
 Share

Recommended Posts

Hi. What is the best way to build and render an image in Pixi.js 8 pixel by pixel?
I know in previous version of something like `Texture.fromBuffer` allowing to create a texture from an array of colors but I cannot find this function in version 8.
I guess I can still create a canvas and use `canvas.PutImageData`, then `Texture.from(canvas)` but I find this approach a bit cumbersome.
Is there a way to do it directly with some specific Pixi.js API?
Also what is the best way to update and render it every frame?

For some context: I'm trying to write a simple raycast engine.

Thank you for your help.

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...