Hi all,
see <!-- m --><a class="postlink" href="http://www.mkbhomepage.nl/posting/">http://www.mkbhomepage.nl/posting/</a><!-- m -->
I believe I found a real challange. I want to be able to change the color of an image (1 color only!) based on users input.
I thought about making an inverse image and use the background of a cell to do this, but that brings another problem, I can no longer see the background image.
I made a page with an example and a clear description of the issue. See <!-- m --><a class="postlink" href="http://www.mkbhomepage.nl/posting/">http://www.mkbhomepage.nl/posting/</a><!-- m -->
Thanks,
Geert-Janhumm, i've looked at your page but it's still not making much sense to me. It might make it more obvious if you put in a series of images showing what you mean - ie the gif you've used, but with no transparency, then one of the image with transparency to show the effect. Taking about "changing the gray colour in which the image has been painted" gets a little confusing, since there's no gray on that picture. I did think that you meant the background (and hence transparency) colour was gray, but you saying "in which the image has been painted" made me question that since you dont paint in the background colour.
That said, as far as i rekon i dont think it can be done. you're effectively talking about changing the transparent colour of the gif, and i dont think that that can be done. Maybe PHP can get in there and change it, but i've not seen it yet if it can. and i dont know of anything that will "make" a certain colour transparent on a page. the only thing that comes in any way close to what you're talking about is to have a transparent image and then change the background colour when there's a mouseover or something - that would make it look like the background had gone from white to red or something (see <!-- w --><a class="postlink" href="http://www.silverorange.com">www.silverorange.com</a><!-- w -->). But come to think of it, that's not at all what you want.
DohOK, forget all the other words and lat me rephrase it like this:
I want to ask the website-user for a color. If the user says: red, I want the brown to become red. That's it.
One solution I thought of myself is to make the image an inverse (make the brown transparant) and then put it in a cell and change the background of the cell. The color of the image (now brown) will then become red. However: If I make a cell with a backgroundcolor, I will no longer see the background of the page through the image (between the brown now/ the red then). Get it? If you do not understand this part of the description, forget it.
The question is just: How can I make the brown --> red, using code online (Java/ php...)You could always just make various images, and allow users to select colors of the available images. Other than that.. just go with your idea to change the background color of the cell.
see <!-- m --><a class="postlink" href="http://www.mkbhomepage.nl/posting/">http://www.mkbhomepage.nl/posting/</a><!-- m -->
I believe I found a real challange. I want to be able to change the color of an image (1 color only!) based on users input.
I thought about making an inverse image and use the background of a cell to do this, but that brings another problem, I can no longer see the background image.
I made a page with an example and a clear description of the issue. See <!-- m --><a class="postlink" href="http://www.mkbhomepage.nl/posting/">http://www.mkbhomepage.nl/posting/</a><!-- m -->
Thanks,
Geert-Janhumm, i've looked at your page but it's still not making much sense to me. It might make it more obvious if you put in a series of images showing what you mean - ie the gif you've used, but with no transparency, then one of the image with transparency to show the effect. Taking about "changing the gray colour in which the image has been painted" gets a little confusing, since there's no gray on that picture. I did think that you meant the background (and hence transparency) colour was gray, but you saying "in which the image has been painted" made me question that since you dont paint in the background colour.
That said, as far as i rekon i dont think it can be done. you're effectively talking about changing the transparent colour of the gif, and i dont think that that can be done. Maybe PHP can get in there and change it, but i've not seen it yet if it can. and i dont know of anything that will "make" a certain colour transparent on a page. the only thing that comes in any way close to what you're talking about is to have a transparent image and then change the background colour when there's a mouseover or something - that would make it look like the background had gone from white to red or something (see <!-- w --><a class="postlink" href="http://www.silverorange.com">www.silverorange.com</a><!-- w -->). But come to think of it, that's not at all what you want.
DohOK, forget all the other words and lat me rephrase it like this:
I want to ask the website-user for a color. If the user says: red, I want the brown to become red. That's it.
One solution I thought of myself is to make the image an inverse (make the brown transparant) and then put it in a cell and change the background of the cell. The color of the image (now brown) will then become red. However: If I make a cell with a backgroundcolor, I will no longer see the background of the page through the image (between the brown now/ the red then). Get it? If you do not understand this part of the description, forget it.
The question is just: How can I make the brown --> red, using code online (Java/ php...)You could always just make various images, and allow users to select colors of the available images. Other than that.. just go with your idea to change the background color of the cell.