02-22-2021, 11:13 AM
Hi,
We have the functionality to use .svg graphics files for the game board and pieces. However, we have several restrictions listed below.
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).
We have the functionality to use .svg graphics files for the game board and pieces. However, we have several restrictions listed below.
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).