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
/
Avalam
/
generateSVG.py
diff --git
a/client/public/images/pieces/Avalam/generateSVG.py
b/client/public/images/pieces/Avalam/generateSVG.py
index
8d52678
..
746a2be
100755
(executable)
--- a/
client/public/images/pieces/Avalam/generateSVG.py
+++ b/
client/public/images/pieces/Avalam/generateSVG.py
@@
-12,7
+12,7
@@
black = '<circle cx="115" cy="115" r="100" fill="crimson" stroke="darkslategray"
white = '<circle cx="115" cy="115" r="100" fill="gold" stroke="darkslategray"/>'
digits = [
white = '<circle cx="115" cy="115" r="100" fill="gold" stroke="darkslategray"/>'
digits = [
- # 1
+ # 1
(unused here)
'<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"',
@@
-34,7
+34,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="yellow"') + '/>')
- f.write("\n")
+ if number >= 1:
+ f.write(digits[number] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if color == "white" else 'stroke="yellow"') + '/>')
+ f.write("\n")
f.write(final)
f.close()
f.write(final)
f.close()