javascript - Removing a color in image - CSS, HTML, JS? -


i'm wondering how remove color in image on webpage. want kind of result explained here...

an image 3 segments: blue, purple, , red. want filter out blue ends segments: black, red, , red.

blue purple red -> black red red

i know done in css or javascript in way not know how it. i've been messing css filters , putting div on top of color, nothing rid of blue.

does know how / possible?

you try using css filters however, don't think there filter specific colour , browser compatibility limited. https://developer.mozilla.org/en/docs/web/css/filter

alternatively use svg image allows modify parts of image using css think svg files can pretty big large images... think can use adobe illustrator save files svg. http://www.w3schools.com/svg/tryit.asp?filename=trysvg_myfirst


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -