JavaScript filter image color

后端 未结 3 1008
鱼传尺愫
鱼传尺愫 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:30

    In Internet Explorer, you could use Visual Filters.

    Edit: you want to use the Light filter, here is an exemple

    
    
    with filter: 
    
    without: 
    

提交回复
热议问题