I’ve discovered some odd behaviour when opening Polinode svg files in Inkscape: no colour, black nodes only, & no edges present (see screenshot below). Happening with more than one file, & both open as expected in a browser (screenshot of this also attached). Same result regardless of importing or opening in Inkscape. Once in Inkscape the file ungroups successfully & each node is individually selectable, however they all remain black & unattached, which is not really the point of the exercise.
Can anyone suggest a reason &/or a possible resolution?
When using Polinode it is generally best to input colors in rgba() format as no doubt you have done. The one exception to this is when exporting to SVG as rgba() is not well supported in SVG format (though it is supported in Chrome as you discovered). The solution is to go to Color in Explore and then Edit Colors and convert the rgba() colors to hex colors. You can use this tool: https://www.hexcolortool.com/. This should only be done for the SVG export and the colors should otherwise be left as rgba.
Awesome, thanks Andrew. Will switch them over for next export. Tbh I’d expected hex values when I first popped into that Color editor, cos Polinode is a web-based platform; but rgba is more pure for screen display. Another great resource, btw, is https://www.encyclopedia.com/
Finally responding to confirm that converting colours to hex codes worked a treat!
Also need to correct the link posted last time, meant to recommend https://encycolorpedia.com/ (bit more relevant).
One follow up question though (always at least one): I successfully added a nodeShape attribute & it looks great in Polinode itself. Again though it’s not exported with the svg. Is there a way to save the shapes as well?
Great to hear! I’m afraid the SVG export currently only supports circle node shapes and adding other shapes to the SVG export isn’t on the roadmap at the moment.
An improvement just went live so now all rgba colors are automatically converted to hex colors and back to rgba colors when exporting to SVG. This happens behind the scenes and means that you should be fine just sticking with rgba colors going forward and shouldn’t need to convert manually yourself.