JavaScript filter image color

后端 未结 3 972
鱼传尺愫
鱼传尺愫 2021-01-14 19:05

Hey, I\'m looking for a way to take a black and white img element, and using JavaScript, specify an RGB value so that the image becomes that color. Any ideas (a

3条回答
  •  无人共我
    2021-01-14 19:24

    The only way you'll be able to do this in JavaScript is with the tag. Here is an excellent tutorial if you're interested in learning how to use it.

    Edit: I'm not an expert on MS proprietary filters, but here are the Microsoft docs for image filters in IE.

提交回复
热议问题