ignace Posted February 12, 2016 Share Posted February 12, 2016 Hi, I am building a 2D car configurator and I need some help with the coloring. Currently I am using this technique to color the car: http://jsfiddle.net/m1erickson/2d7ZN/ But now I am wondering how can I select a color using a color picker like this: <form action="" method="post"> <label for="color">Pick color</color> <input type="color" name="color" id="color"> </form>And then transform the selected color to match the car's (thus keeping the reflection). I am not looking specifically for code more the name of the algorithm or technique to get me on my way. I am guessing it's something with taking the RGB value of a pixel of the car and then somehow closely represent this color in the other color. Entering that in Google returns squat. Maybe one of you have experience in this sort of thing? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.