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?
4 Replies
capt_uhu
capt_uhu7mo ago
possibly multiple background-images with background-blend-mode?
MarkBoots
MarkBoots7mo ago
use the icon images as a mask-image on a colored background
capt_uhu
capt_uhu7mo ago
yep, that could work too. Note that you'll need mask-mode: luminance; to use the black and white image.
Mixed Nuts
Mixed Nuts7mo ago
Ok sweet, thank you both, works great
Want results from more Discord servers?
Add your server