Jump to content

Color mapping


JustMe
 Share

Recommended Posts

Hi there,

 

Pixi does not do Re-Colouring at the moment but tinting is on the todo list :)

 

There are ways around this problem though.. what I would suggest for now is you could color the image using canvas as you do and then use the PIXI.Texture.fromCanvas() method to create a new Texture with the coloured image.

Link to comment
Share on other sites

Hi there,

 

Pixi does not do Re-Colouring at the moment but tinting is on the todo list :)

 

There are ways around this problem though.. what I would suggest for now is you could color the image using canvas as you do and then use the PIXI.Texture.fromCanvas() method to create a new Texture with the coloured image.

 

I know pixi will have canvas as fallback  but I specifically mentioned webGL as re-Colouring pixels hoping to provoke a response to find out if such a thing could be done internally by pixi done by the GPU, rather than the CPU as I am doing right now... 

 

Alright, guess I have to be patient then :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...