Answer the question
In order to leave comments, you need to log in
Is changing the color of an SVG element relative to its background color realistic?
There was a small problem - the white cross icon on the background of color images looked good, but if there was a white background under it, then it was not visible. Yes, 21st century problem #1.
We arranged a consultation with the whole studio, we decided to add a shadow.
This is a prehistory, so that it is clear where such an idea comes from.
And the idea sounded like this: on colored backgrounds, let the cross be white, and on light, close to white tones, repaint the cross in green (one of the colors of the design).
Well, I was wondering - is this even legal?
Is it possible to solve such a problem in JS?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question