Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SVG gradient example 1
#4
Must get into Inkscape, create or load SVG file and save as "plain SVG". By default, the program saves as "sodipodi", that is, what it claims is its own format. It adds a lot more XML junk. That's why I warn here to save as "plain SVG", must choose it from the file types in the save file dialog.

This is to study other ins and outs of the SVG format. Doing bezier curves could be tricky. Some pictures switch back and forth between absolute and relative coordinates so one has to look out for that when trying to parse an SVG. The "sodipodi" format tends to have a lot of transformations too, which could be a PITA to get the true absolute coordinates. I should have checked if QB64PE could load one of my Inkscape "projects".

Another thing to watch out for is that in "plain" SVG, there are no layers like what Inkscape supports. Every "layer" in a "plain" SVG file is a group. Indeed, a "plain" SVG is loaded by Inkscape into a single layer, which might have more than one group.

This is for people who think SVG is "yet another cryptic XML-like format" but it really isn't.
Reply


Messages In This Thread
SVG gradient example 1 - by James D Jarvis - 11-16-2023, 09:18 PM
RE: SVG gradient example 1 - by bplus - 11-16-2023, 09:34 PM
RE: SVG gradient example 1 - by James D Jarvis - 11-16-2023, 09:45 PM
RE: SVG gradient example 1 - by a740g - 11-17-2023, 05:05 AM
RE: SVG gradient example 1 - by James D Jarvis - 11-17-2023, 12:51 PM
RE: SVG gradient example 1 - by mnrvovrfc - 11-17-2023, 01:08 AM
RE: SVG gradient example 1 - by James D Jarvis - 11-17-2023, 03:49 AM



Users browsing this thread: 1 Guest(s)