且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CSS过滤器作为一张图像的颜色修改器

更新时间:2021-07-06 22:19:09

您还可以通过添加棕褐色,然后添加一些饱和度,色相旋转度(例如色度)来给白色图像着色.在CSS中:

You can also colorize white images by adding sepia and then some saturation, hue-rotation, e.g. in CSS:

filter: sepia() saturate(10000%) hue-rotate(30deg)

这应该使白色图像变为绿色图像.

This should make white image as green image.

http://jsbin.com/xetefa/1/edit