Color png

My restraints are kind of weird, but I have game file icons that I want to port to the browser. Its a crest data, that is two layers of png, background/foreground. The icons are white/black, and then use a rgba function to give the respective layer a color overlay. Is there a similiar way to do this that doesn't have me try to figure out a way to convert the rgba values to css filter functions dynamically during runtime?
C
capt_uhu13d ago
possibly multiple background-images with background-blend-mode?
M
MarkBoots12d ago
use the icon images as a mask-image on a colored background
C
capt_uhu12d ago
yep, that could work too. Note that you'll need mask-mode: luminance; to use the black and white image.
MN
Mixed Nuts12d ago
Ok sweet, thank you both, works great