projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af4a532
)
Bigger digits for Emergo and Avalam
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 21 Jan 2021 20:11:53 +0000
(21:11 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 21 Jan 2021 20:11:53 +0000
(21:11 +0100)
client/public/images/pieces/Avalam/generateSVG.py
patch
|
blob
|
blame
|
history
client/public/images/pieces/Emergo/generateSVG_composite.py
patch
|
blob
|
blame
|
history
client/public/images/pieces/Emergo/generateSVG_simple.py
patch
|
blob
|
blame
|
history
diff --git
a/client/public/images/pieces/Avalam/generateSVG.py
b/client/public/images/pieces/Avalam/generateSVG.py
index
d400d79
..
8d52678
100755
(executable)
--- a/
client/public/images/pieces/Avalam/generateSVG.py
+++ b/
client/public/images/pieces/Avalam/generateSVG.py
@@
-8,20
+8,20
@@
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">"""
<!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="
red
" stroke="darkslategray"/>'
-white = '<circle cx="115" cy="115" r="100" fill="
yellow
" stroke="darkslategray"/>'
+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 = [
# 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"'
]
final = "</svg>"
]
final = "</svg>"
@@
-34,7
+34,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="yellow"') + '/>')
+ 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("\n")
f.write(final)
f.close()
diff --git
a/client/public/images/pieces/Emergo/generateSVG_composite.py
b/client/public/images/pieces/Emergo/generateSVG_composite.py
index
915404b
..
aaae189
100755
(executable)
--- a/
client/public/images/pieces/Emergo/generateSVG_composite.py
+++ b/
client/public/images/pieces/Emergo/generateSVG_composite.py
@@
-22,55
+22,55
@@
black_right = '<circle cx="115" cy="115" r="100" fill="black"/>'
digits = {
"left": [
# 1
digits = {
"left": [
# 1
- '<path d="M9
0,95 v4
0"',
+ '<path d="M9
5,85 v6
0"',
# 2
# 2
- '<path d="M
70,95 h20 v20 h-20 v20 h2
0"',
+ '<path d="M
65,85 h30 v30 h-30 v30 h3
0"',
# 3
# 3
- '<path d="M
70,95 h20 v20 h-20 M90,115 v20 h-2
0"',
+ '<path d="M
65,85 h30 v30 h-30 M95,115 v30 h-3
0"',
# 4
# 4
- '<path d="M
70,95 v20 h20 v20 M90,95 v2
0"',
+ '<path d="M
65,85 v30 h30 v30 M95,95 v3
0"',
# 5
# 5
- '<path d="M9
0,95 h-20 v20 h20 v20 h-2
0"',
+ '<path d="M9
5,85 h-30 v30 h30 v30 h-3
0"',
# 6
# 6
- '<path d="M9
0,95 h-20 v40 h20 v-20 h-2
0"',
+ '<path d="M9
5,85 h-30 v60 h30 v-30 h-3
0"',
# 7
# 7
- '<path d="M
70,95 h20 v4
0"',
+ '<path d="M
65,85 h30 v6
0"',
# 8
# 8
- '<path d="M
70,95 h20 v40 h-20 z M70,115 h2
0"',
+ '<path d="M
65,85 h30 v60 h-30 z M65,115 h3
0"',
# 9
# 9
- '<path d="M
70,135 h20 v-40 h-20 v20 h2
0"',
+ '<path d="M
65,145 h30 v-60 h-30 v30 h3
0"',
# 10
# 10
- '<path d="M
60,95 v40 M70,95 h20 v40 h-20 v-4
0"',
+ '<path d="M
55,85 v60 M65,85 h30 v60 h-30 v-6
0"',
# 11
# 11
- '<path d="M
60,95 v40 M90,95 v4
0"',
+ '<path d="M
55,85 v60 M95,85 v6
0"',
# 12
# 12
- '<path d="M
60,95 v40 M70,95 h20 v20 h-20 M90,115 v20 h-2
0"'
+ '<path d="M
55,85 v60 M65,85 h30 v30 h-30 v30 h3
0"'
],
"right": [
# 1
],
"right": [
# 1
- '<path d="M18
0,95 v4
0"',
+ '<path d="M18
5,85 v6
0"',
# 2
# 2
- '<path d="M1
60,95 h20 v20 h-20 v20 h2
0"',
+ '<path d="M1
55,85 h30 v30 h-30 v30 h3
0"',
# 3
# 3
- '<path d="M1
60,95 h20 v20 h-20 M180,115 v20 h-2
0"',
+ '<path d="M1
55,85 h30 v30 h-30 M185,115 v30 h-3
0"',
# 4
# 4
- '<path d="M1
60,95 v20 h20 v20 M180,95 v2
0"',
+ '<path d="M1
55,85 v30 h30 v30 M185,85 v3
0"',
# 5
# 5
- '<path d="M18
0,95 h-20 v20 h20 v20 h-2
0"',
+ '<path d="M18
5,85 h-30 v30 h30 v30 h-3
0"',
# 6
# 6
- '<path d="M18
0,95 h-20 v40 h20 v-20 h-2
0"',
+ '<path d="M18
5,85 h-30 v60 h30 v-30 h-3
0"',
# 7
# 7
- '<path d="M1
60,95 h20 v4
0"',
+ '<path d="M1
55,85 h30 v6
0"',
# 8
# 8
- '<path d="M1
60,95 h20 v40 h-20 z M160,115 h2
0"',
+ '<path d="M1
55,85 h30 v60 h-30 z M155,115 h3
0"',
# 9
# 9
- '<path d="M1
60,135 h20 v-40 h-20 v20 h2
0"',
+ '<path d="M1
55,145 h30 v-60 h-30 v30 h3
0"',
# 10
# 10
- '<path d="M1
50,95 v40 M160,95 h20 v40 h-20 v-4
0"',
+ '<path d="M1
45,85 v60 M155,85 h30 v60 h-30 v-6
0"',
# 11
# 11
- '<path d="M1
50,95 v40 M180,95 v4
0"',
+ '<path d="M1
45,85 v60 M185,85 v6
0"',
# 12
# 12
- '<path d="M1
50,95 v40 M160,95 h20 v20 h-20 M180,115 v20 h-2
0"'
+ '<path d="M1
45,85 v60 M155,85 h30 v30 h-30 v30 h3
0"'
]
}
]
}
@@
-88,9
+88,9
@@
for colorLeft in ["white", "black"]:
f.write("\n")
f.write(white_left if colorLeft == "white" else black_left)
f.write("\n")
f.write("\n")
f.write(white_left if colorLeft == "white" else black_left)
f.write("\n")
- f.write(digits["left"][left] + ' fill="none" stroke-width="
4
" ' + ('stroke="red"' if colorLeft == "white" else 'stroke="orange"') + '/>')
+ f.write(digits["left"][left] + ' fill="none" stroke-width="
5
" ' + ('stroke="red"' if colorLeft == "white" else 'stroke="orange"') + '/>')
f.write("\n")
f.write("\n")
- f.write(digits["right"][right] + ' fill="none" stroke-width="
4
" ' + ('stroke="red"' if colorLeft == "black" else 'stroke="orange"') + '/>')
+ f.write(digits["right"][right] + ' fill="none" stroke-width="
5
" ' + ('stroke="red"' if colorLeft == "black" else 'stroke="orange"') + '/>')
f.write("\n")
f.write(final)
f.close()
f.write("\n")
f.write(final)
f.close()
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()