X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fpublic%2Fimages%2Fpieces%2FEmergo%2FgenerateSVG_composite.py;h=85726d57257438bcd3fd9df5d3a060d6c96b3229;hb=2c9f08fce443d57a70e886242ec391d89e450a7b;hp=87eb55f6133d45f37b22d06955450b3c8c30cc72;hpb=e07981727a6d486886f01f8e0ddc548fd733764b;p=vchess.git diff --git a/client/public/images/pieces/Emergo/generateSVG_composite.py b/client/public/images/pieces/Emergo/generateSVG_composite.py index 87eb55f6..85726d57 100755 --- a/client/public/images/pieces/Emergo/generateSVG_composite.py +++ b/client/public/images/pieces/Emergo/generateSVG_composite.py @@ -10,87 +10,89 @@ preamble = """ - + """ -black_left = '' -white_right = '' -white_left = '' -black_right = '' +black_top = '' +white_bottom = '' +white_top = '' +black_bottom = '' digits = { - "left": [ - # 1 - '', + "top": [ + # 1 (unused here) + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '' + '', + "bottom": [ + # 1 (unused here) + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '' + '= 1: + f.write(digits["top"][top] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorTop == "white" else 'stroke="orange"') + '/>') + f.write("\n") + if bottom >= 1: + f.write(digits["bottom"][bottom] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorTop == "black" else 'stroke="orange"') + '/>') + f.write("\n") f.write(final) f.close()