B
B
BB 82017-06-23 14:06:21
css
BB 8, 2017-06-23 14:06:21

How to change the color of an area on an image/block background with a click???

An example of a site where a similar function is implemented, but on flash: potolok-altezza.ru
How can this be done on html/css/js ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2017-06-23
@asdz

I think you will have to split the image into components, prepare all the color-changing components in different colors, describe the overall picture in the form of a json model (metadata: which component is located at what coordinates, and its options), process and compose the overall picture on the canvas using js. Then, tracking mouse actions, perform the replacement of certain blocks in accordance with the metadata.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question