388 views
in Embedded Wizard Studio by

Hi everyone,

I am working with SVG files that contain multiple paths in EmWi. My goal is to dynamically change specific colors within these SVGs using a color variable.

For example:

  • I want to change all blue areas (example hex: #0000FF) in my SVG to a custom color defined by a variable (color_block).
  • I am using the Views::SVG class to display the images and I’ve checked the documentation but i am unsure how to target specific colors inside the SVG for dynamic changes.

Is there a way in EmWi to modify specific fill colors directly or do I need to adjust the SVG paths manually before importing them?
Any suggestions or examples of how to handle this would be really helpful!

Thanks in advance

1 Answer

0 votes
by

Hello,

please see the section Determine default colors for the SVG image.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...