X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fpublic%2Fimages%2Fpieces%2FEmergo%2FgenerateSVG_composite.py;h=1e37f2b6cd410c377b7d2a7d0f828cee0de8f753;hb=d77258a0996f62303871d19bfe90952692f51df6;hp=aaae18981adcce2db948c1e661f5e054f0fc7615;hpb=f0a812b7b11bc2a1514d2aa10ecc257d10d988d5;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..1e37f2b6 100755 --- a/client/public/images/pieces/Emergo/generateSVG_composite.py +++ b/client/public/images/pieces/Emergo/generateSVG_composite.py @@ -10,87 +10,87 @@ preamble = """ - + """ -black_left = '' -white_right = '' -white_left = '' -black_right = '' +black_top = '' +white_bottom = '' +white_top = '' +black_bottom = '' digits = { - "left": [ + "top": [ # 1 - '') + f.write(digits["top"][top] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorTop == "white" else 'stroke="orange"') + '/>') f.write("\n") - f.write(digits["right"][right] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorLeft == "black" else 'stroke="orange"') + '/>') + 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()