projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Spartan, Avalam + Emergo pieces
[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
fd397af
..
c8ef826
100755
(executable)
--- a/
client/public/images/pieces/Emergo/generateSVG_simple.py
+++ b/
client/public/images/pieces/Emergo/generateSVG_simple.py
@@
-12,7
+12,7
@@
black = '<circle cx="115" cy="115" r="100" fill="black"/>'
white = '<circle cx="115" cy="115" r="100" fill="whitesmoke" stroke="saddlebrown"/>'
digits = [
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"',
'<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("\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()
f.write(final)
f.close()