Jump to content

Partially coloring assets on client side


prvi_treti
 Share

Recommended Posts

Hello there,

 

 As title suggest I am looking for a way to color certain parts of assets on the fly on client side. What I am trying to achive is something like

 

VHc4XA7.jpg

 

So I'd like to ask if it is possible with canvas image manipulation or will need a pure JS library, I also wonder if any elegant maskless solution is possible.

 

Thanks in advance.

Link to comment
Share on other sites

I wrote a blog post on this very topic.  

 

Build a Dynamic Texture Atlas in Phaser

 

 

I am using a palette in the texture atlas to color all of the other textures.

 

wewant.png

 

It is somewhat specific to Phaser but I hope you find it useful.

 

Thanks for response, it was quite useful. Seems I will need a "tone map" for specific color instead of palette though for non-pixel art.

 

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