I’m trying to load an SVG into a Drawable
and then replace the color. However it doesn’t seem to detect the color for some reason. I made sure the SVG uses a pure red exclusively, as a fill, with no gradient.
My code is:
m_logo = Drawable::createFromSVGFile(File("/path/to/logo.svg"));
DBG("Colour found: " << (int)m_logo->replaceColour(Colour(0xFF, 0x00, 0x00), m_color_content));
This will always output Color found: 0
. I’ve attached the logo in case it helps!
logo.zip (4.9 KB)