X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fpublic%2Fimages%2Fpieces%2FEmergo%2FgenerateSVG_composite.py;h=85726d57257438bcd3fd9df5d3a060d6c96b3229;hb=2c9f08fce443d57a70e886242ec391d89e450a7b;hp=aaae18981adcce2db948c1e661f5e054f0fc7615;hpb=2afc4e191af82b4fc7bcd5015bad05fddedc673a;p=vchess.git diff --git a/client/public/images/pieces/Emergo/generateSVG_composite.py b/client/public/images/pieces/Emergo/generateSVG_composite.py index aaae1898..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 - '') - f.write("\n") - f.write(digits["right"][right] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorLeft == "black" else 'stroke="orange"') + '/>') + f.write(white_top if colorTop == "white" else black_top) f.write("\n") + if top >= 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()