X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fpublic%2Fimages%2Fpieces%2FEmergo%2FgenerateSVG_composite.py;h=85726d57257438bcd3fd9df5d3a060d6c96b3229;hb=0760d861aac62ed093d95ab86f7226dc6b8d3a70;hp=915404b660df096c0216666e81558860abfb411a;hpb=b27300c2951adcc67acbf4b822267dc102895ce3;p=vchess.git diff --git a/client/public/images/pieces/Emergo/generateSVG_composite.py b/client/public/images/pieces/Emergo/generateSVG_composite.py index 915404b6..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="4" ' + ('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()