Thanks Ian, will check out Snap! The line arts is pure raster, indeed a transparent PNG (put into the SVG as <image> tag with local relative path href), so the white there is just a CSS bgcolor on the svg elem in my GUI. I generate these empty-with-lineart-backdrop template SVGs (with one <group> aka layer per panel) from my own code, originally so I could flood-fill them via Inkscape, as it has this capability and generates sufficiently-filling polygons, which is what I'd like to code up here too. (Like I said, I'm going for my own more rapid less clunky UX in this dev.) The reason for this is that after doing fills in SVG, my software picks up changes in it and generates actual final background PNGs, so if you check out the first panel on
this sample comic, then the generated-from-the-filled-in-SVG background PNG is actually
this.
So that's what my niche workflow was via Inkscape and generated template SVGs to be manually filled and then generated backdrop-colors PNGs per group from those filled SVGs =) and yeah, aiming to generate flood-filling-polygons in the live in-DOM SVG with respect to the raster outlines line-art..