Ludii Forum
(show Piece) + (piece Colour) - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: (show Piece) + (piece Colour) (/showthread.php?tid=452)



(show Piece) + (piece Colour) - Michael - 02-22-2021

When I try to use both these ludemes I get that HTML garbage thing. I have attached an example.


RE: (show Piece) + (piece Colour) - MatthewStephenson - 02-22-2021

Hi,

You need to add curly brackets around the content of the graphics metadata section

(metadata
(graphics {
(show Piece State Middle)
(piece Colour Neutral
fillColour:(colour 0 0 0 0)
strokeColour:(colour 0 0 0 0)
)
})
)

Cheers,
Matthew


RE: (show Piece) + (piece Colour) - Michael - 02-22-2021

Ah! Thanks! Silly mistake.