projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bigger digits for Emergo and Avalam
[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
6453362
..
301c279
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="M1
25,95 v4
0"',
+ '<path d="M1
30,85 v6
0"',
# 2
# 2
- '<path d="M10
5,95 h20 v20 h-20 v20 h2
0"',
+ '<path d="M10
0,85 h30 v30 h-30 v30 h3
0"',
# 3
# 3
- '<path d="M10
5,95 h20 v20 h-20 M125,115 v20 h-2
0"',
+ '<path d="M10
0,85 h30 v30 h-30 M130,115 v30 h-3
0"',
# 4
# 4
- '<path d="M10
5,95 v20 h20 v20 M125,95 v2
0"',
+ '<path d="M10
0,85 v30 h30 v30 M130,85 v3
0"',
# 5
# 5
- '<path d="M1
25,95 h-20 v20 h20 v20 h-2
0"',
+ '<path d="M1
30,85 h-30 v30 h30 v30 h-3
0"',
# 6
# 6
- '<path d="M1
25,95 h-20 v40 h20 v-20 h-2
0"',
+ '<path d="M1
30,85 h-30 v60 h30 v-30 h-3
0"',
# 7
# 7
- '<path d="M10
5,95 h20 v4
0"',
+ '<path d="M10
0,85 h30 v6
0"',
# 8
# 8
- '<path d="M10
5,95 h20 v40 h-20 z M105,115 h2
0"',
+ '<path d="M10
0,85 h30 v60 h-30 z M100,115 h3
0"',
# 9
# 9
- '<path d="M10
5,135 h20 v-40 h-20 v20 h2
0"',
+ '<path d="M10
0,135 h30 v-60 h-30 v30 h3
0"',
# 10
# 10
- '<path d="M
100,95 v40 M110,95 h20 v40 h-20 v-4
0"',
+ '<path d="M
95,85 v60 M105,85 h30 v60 h-30 v-6
0"',
# 11
# 11
- '<path d="M
100,95 v40 M130,95 v4
0"',
+ '<path d="M
95,85 v60 M135,85 v6
0"',
# 12
# 12
- '<path d="M
100,95 v40 M110,95 h20 v20 h-20 M130,115 v20 h-2
0"'
+ '<path d="M
95,85 v60 M105,85 h30 v30 h-30 v30 h3
0"'
]
final = "</svg>"
]
final = "</svg>"
@@
-49,7
+49,7
@@
for color in ["white", "black"]:
f.write("\n")
f.write(white if color == "white" else black)
f.write("\n")
f.write("\n")
f.write(white if color == "white" else black)
f.write("\n")
- f.write(digits[number] + ' fill="none" stroke-width="
4
" ' + ('stroke="red"' if color == "white" else 'stroke="orange"') + '/>')
+ 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()
f.write("\n")
f.write(final)
f.close()