Jump to content

Correct way to manipulate colors pixel by pixel


Snok
 Share

Recommended Posts

I'm trying to to set the color of pixels one by one. I have a matrix with all my value, calculate by some function to assign a specific color. Actually i'm using the Geometry Rectangle with size 1x1, but i'm not sure it's the best way to do that. Anyone have some suggestion? 

Link to comment
Share on other sites

I've another question =D I've implemented my work with the Texture.fromBuffer and it works fine. I compute my texture with the cpu for every 'pixel' and after i render it. There is a way for me with pixi and webGL to pass some data to the pixel and delegate the work to each one to compute every pixel in parallel?! Because i need to compute my texture frequently with different data and i thought some way to optimize my code with cpu, but of course if i do the work with gpu it will be faster. (the data that i need to pass to the pixel every time it's a different amount) . Thanks, i hope it's not a stupid question :D

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