11-30-2020, 04:09 PM
(11-21-2020, 09:57 AM)MatthewStephenson Wrote: Hi,
One thing to point out, is that we have several limitations on what SVG images can be used within Ludii.
Currently your SVG image is reflected in Ludii.
The best way to check if an SVG will display correctly in Ludii, is using the "View -> Load SVG" menu option.
The current restrictions on SVGs in Ludii are:
- Colour is not used (we fill the figure with player colour then draw black border).
- Figure border must be defined by a path fill (not a stroke).
- Can use multiple paths, but no other primitive shapes (no lines, not rectangles, no circles, ...)
- Can't use transforms (which is why your example image from yesterday is reflected).
- Groups are not respected (though do not necessarily draw badly).
Cheers,
Matthew
Matthew,
I am somewhat struggling with this.
As far as I can see Inkscape ignores your criteria fairly blindly. However I have never used this program before and I don't really know what I am doing.
I have managed to get something that looks to me like it should work. I managed (inside GIMP) convert a selection to a path and exported that to an SVG. I then tweaked a few parameters in the text and it seems to look right to me. However when I test it in Ludii using "Load SVG" nothing happens.
I did manage to load something from what I produced using inkscape but that was a horrible mess.
Please could you give any clues on how I can generate compliant SVG's?
Nicholas