Jump to content

colors for different parts of an image


sowjanya08

Recommended Posts

Hello Guys!

          I have used the image swap function to change the color of the whole tshirt on click. But I need to change the color of each part of the tshirt like sleeves, collar etc. which seems to be more complicated.  How could this be done?

Any help would be appreciated!  :)

 

Link to comment
https://forums.phpfreaks.com/topic/198881-colors-for-different-parts-of-an-image/
Share on other sites

Letme explain with the following image...

I am planning for the user to be able to change the color of the t-shirt ( body, collar and sleeve )

 

so initially i ll be having a plain white tshirt.. using javascript i am able to change the color of the t-shirt entirely by using the swap... pre creating the images for various colors of the shirt...

 

now apart from that,,if i want to change the color of the sleeve, i shud change only the sleeve part alone..not the entire shirt.. which i dono how to do... how can i id or attribute the sleeve or the collar part alone ....

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.