NickHardeman / ofxSvgLoader

Addon for OpenFrameworks for parsing svg files.
31 stars 5 forks source link

how to ignore color attribute? #4

Closed dimitre closed 3 years ago

dimitre commented 3 years ago

Hey @NickHardeman thanks for this addon, it is great to be able to parse SVG by group names. It would be great to have a way of disabling colors in the SVG so it can draw with current color, in the likes of

void ofxAssimpModelLoader::disableColors()

Cheers!

NickHardeman commented 3 years ago

Hi @dimitre, Thank you for the suggestion. I added these functions to allow ignoring of the svg colors per group or individual element. https://github.com/NickHardeman/ofxSvgLoader/blob/972adc3b8b4a3bdd52f0f5f38ac2d312931a7cc1/src/ofxSvgGroup.h#L70-L71

dimitre commented 3 years ago

That's beautiful! Already working here. This addon is great it should be on OFW core :)