Overlay non-transparent area of image with CSS
问题 I am interested in dynamically modifying an image with transparent background, and achieving that using CSS. What I actually need, is creating a kind of a silhouette, so that all non-transparent pixels, have a color applied to them. In this case, Black. The before and after should look something like this: Note both images have a transparent background. Is there a method that can be used to perform this using CSS? If not, is there an easy way to generate the silhouette and switch between the