projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Emergo. Add Avalam 1 & 2
[vchess.git]
/
client
/
public
/
images
/
pieces
/
Emergo
/
generateSVG_simple.py
diff --git
a/client/public/images/pieces/Emergo/generateSVG_simple.py
b/client/public/images/pieces/Emergo/generateSVG_simple.py
index
5cb53c9
..
6453362
100755
(executable)
--- a/
client/public/images/pieces/Emergo/generateSVG_simple.py
+++ b/
client/public/images/pieces/Emergo/generateSVG_simple.py
@@
-13,29
+13,29
@@
white = '<circle cx="115" cy="115" r="100" fill="whitesmoke" stroke="orange"/>'
digits = [
# 1
digits = [
# 1
- '<path d="M125,95 v40"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M125,95 v40"',
# 2
# 2
- '<path d="M105,95 h20 v20 h-20 v20 h20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,95 h20 v20 h-20 v20 h20"',
# 3
# 3
- '<path d="M105,95 h20 v20 h-20 M125,115 v20 h-20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,95 h20 v20 h-20 M125,115 v20 h-20"',
# 4
# 4
- '<path d="M105,95 v20 h20 v20 M125,95 v20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,95 v20 h20 v20 M125,95 v20"',
# 5
# 5
- '<path d="M125,95 h-20 v20 h20 v20 h-20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M125,95 h-20 v20 h20 v20 h-20"',
# 6
# 6
- '<path d="M125,95 h-20 v40 h20 v-20 h-20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M125,95 h-20 v40 h20 v-20 h-20"',
# 7
# 7
- '<path d="M105,95 h20 v40"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,95 h20 v40"',
# 8
# 8
- '<path d="M105,95 h20 v40 h-20 z M105,115 h20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,95 h20 v40 h-20 z M105,115 h20"',
# 9
# 9
- '<path d="M105,135 h20 v-40 h-20 v20 h20"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M105,135 h20 v-40 h-20 v20 h20"',
# 10
# 10
- '<path d="M100,95 v40 M110,95 h20 v40 h-20 v-40"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M100,95 v40 M110,95 h20 v40 h-20 v-40"',
# 11
# 11
- '<path d="M100,95 v40 M130,95 v40"
stroke="red" fill="none" stroke-width="2"/>
',
+ '<path d="M100,95 v40 M130,95 v40"',
# 12
# 12
- '<path d="M100,95 v40 M110,95 h20 v20 h-20 M130,115 v20 h-20"
stroke="red" fill="none" stroke-width="2"/>
'
+ '<path d="M100,95 v40 M110,95 h20 v20 h-20 M130,115 v20 h-20"'
]
final = "</svg>"
]
final = "</svg>"
@@
-46,10
+46,10
@@
for color in ["white", "black"]:
filename = chr(65 + number + chrShift) + "@.svg"
f = open(filename, "w")
f.write(preamble)
filename = chr(65 + number + chrShift) + "@.svg"
f = open(filename, "w")
f.write(preamble)
- f.write("\n")
;
+ f.write("\n")
f.write(white if color == "white" else black)
f.write(white if color == "white" else black)
- f.write("\n")
;
- f.write(digits[number])
- f.write("\n")
;
+ f.write("\n")
+ f.write(digits[number]
+ ' fill="none" stroke-width="4" ' + ('stroke="red"' if color == "white" else 'stroke="orange"') + '/>'
)
+ f.write("\n")
f.write(final)
f.close()
f.write(final)
f.close()