From: Benjamin Auder Date: Thu, 28 Jan 2021 17:18:11 +0000 (+0100) Subject: Better Emergo pieces X-Git-Url: https://git.auder.net/variants/current/doc/scripts/pieces/DESCRIPTION?a=commitdiff_plain;h=d77258a0996f62303871d19bfe90952692f51df6;p=vchess.git Better Emergo pieces --- 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() diff --git a/client/public/images/pieces/Emergo/generateSVG_simple.py b/client/public/images/pieces/Emergo/generateSVG_simple.py index 301c2796..fd397af2 100755 --- a/client/public/images/pieces/Emergo/generateSVG_simple.py +++ b/client/public/images/pieces/Emergo/generateSVG_simple.py @@ -8,8 +8,8 @@ preamble = """ """ -black = '' -white = '' +black = '' +white = '' digits = [ # 1