Improve Spartan, Avalam + Emergo pieces
[vchess.git] / client / public / images / pieces / Emergo / generateSVG_simple.py
index 301c279..c8ef826 100755 (executable)
@@ -8,11 +8,11 @@ preamble = """<?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
 <svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="230" height="230">"""
 
-black = '<circle cx="115" cy="115" r="100" fill="black" stroke="orange"/>'
-white = '<circle cx="115" cy="115" r="100" fill="whitesmoke" stroke="orange"/>'
+black = '<circle cx="115" cy="115" r="100" fill="black"/>'
+white = '<circle cx="115" cy="115" r="100" fill="whitesmoke" stroke="saddlebrown"/>'
 
 digits = [
-    # 1
+    # 1 (unused)
     '<path d="M130,85 v60"',
     # 2
     '<path d="M100,85 h30 v30 h-30 v30 h30"',
@@ -49,7 +49,8 @@ for color in ["white", "black"]:
         f.write("\n")
         f.write(white if color == "white" else black)
         f.write("\n")
-        f.write(digits[number] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if color == "white" else 'stroke="orange"') + '/>')
-        f.write("\n")
+        if number >= 1:
+            f.write(digits[number] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if color == "white" else 'stroke="orange"') + '/>')
+            f.write("\n")
         f.write(final)
         f.close()