Compare commits
No commits in common. "f1efacfe1d93165f353624d5fe041ef180223202" and "adac06dc24e46a9bd34c32e01947c8685b88653b" have entirely different histories.
f1efacfe1d
...
adac06dc24
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
|
@ -1 +0,0 @@
|
||||||
rm gen_*
|
|
|
@ -1,38 +0,0 @@
|
||||||
{
|
|
||||||
"violet":
|
|
||||||
[
|
|
||||||
["6800e7","6800e7"],
|
|
||||||
["40008b","40008b"],
|
|
||||||
["2a005e","2a005e"],
|
|
||||||
["15002f","15002f"]
|
|
||||||
],
|
|
||||||
"pink":
|
|
||||||
[
|
|
||||||
["6800e7","b239ff"],
|
|
||||||
["40008b","670096"],
|
|
||||||
["2a005e","450069"],
|
|
||||||
["15002f","240039"]
|
|
||||||
],
|
|
||||||
"blue":
|
|
||||||
[
|
|
||||||
["6800e7","03abeb"],
|
|
||||||
["40008b","0079a7"],
|
|
||||||
["2a005e","004c69"],
|
|
||||||
["15002f","002b3b"]
|
|
||||||
],
|
|
||||||
"turquise":
|
|
||||||
[
|
|
||||||
["6800e7","02fae0"],
|
|
||||||
["40008b","01a08f"],
|
|
||||||
["2a005e","01564d"],
|
|
||||||
["15002f","001b18"]
|
|
||||||
],
|
|
||||||
"red":
|
|
||||||
[
|
|
||||||
["6800e7","fd294f"],
|
|
||||||
["40008b","ae1d37"],
|
|
||||||
["2a005e","721425"],
|
|
||||||
["15002f","310810"]
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
bash clean.sh
|
|
||||||
|
|
||||||
for f in *.svg; do python3 generate.py $f colortables.json; done
|
|
||||||
|
|
||||||
#index
|
|
||||||
rm index.html
|
|
||||||
echo "<html><head>" > index.html
|
|
||||||
|
|
||||||
echo "<style type=text/css>" >> index.html
|
|
||||||
echo "body{background:#100e23;display:flex;flex-flow: row wrap;}img{margin:10px;}" >> index.html
|
|
||||||
echo "</style>" >> index.html
|
|
||||||
|
|
||||||
echo "</head><body>" >> index.html
|
|
||||||
for f in gen_*; do echo "<img alt="$f" width=100 src=$f></img>" >> index.html; done
|
|
||||||
echo "</body></html>" >> index.html
|
|
||||||
|
|
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
|
@ -1,32 +0,0 @@
|
||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
import json
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def loadColorTables(fn = 'colortables.json'):
|
|
||||||
with open(fn) as f:
|
|
||||||
return json.loads(f.read())
|
|
||||||
|
|
||||||
def readSrcSvg(fn = 'franconianNet.svg'):
|
|
||||||
with open(fn) as f:
|
|
||||||
return f.read()
|
|
||||||
|
|
||||||
def replaceColors(svg, table):
|
|
||||||
for mapping in table:
|
|
||||||
svg = svg.replace(mapping[0], mapping[1])
|
|
||||||
return svg
|
|
||||||
|
|
||||||
def genAll(srcFN = 'franconianNet.svg', tablesFN='colortables.json'):
|
|
||||||
tables = loadColorTables(tablesFN)
|
|
||||||
src = readSrcSvg(srcFN)
|
|
||||||
|
|
||||||
for name in tables:
|
|
||||||
repl = replaceColors(src , tables[name])
|
|
||||||
with open("gen_"+srcFN.split(".")[0]+"_"+name+".svg", "w") as fo:
|
|
||||||
fo.write(repl)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
genAll(sys.argv[1], sys.argv[2])
|
|
||||||
|
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
<html><head>
|
|
||||||
<style type=text/css>
|
|
||||||
body{background:#100e23;display:flex;flex-flow: row wrap;}img{margin:10px;}
|
|
||||||
</style>
|
|
||||||
</head><body>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_joinTiles_blue.svg width=100 src=gen_bothTxt_noWhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_joinTiles_pink.svg width=100 src=gen_bothTxt_noWhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_joinTiles_red.svg width=100 src=gen_bothTxt_noWhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_joinTiles_turquise.svg width=100 src=gen_bothTxt_noWhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_joinTiles_violet.svg width=100 src=gen_bothTxt_noWhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_sepTiles_blue.svg width=100 src=gen_bothTxt_noWhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_sepTiles_pink.svg width=100 src=gen_bothTxt_noWhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_sepTiles_red.svg width=100 src=gen_bothTxt_noWhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_sepTiles_turquise.svg width=100 src=gen_bothTxt_noWhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_bothTxt_noWhiteLine_sepTiles_violet.svg width=100 src=gen_bothTxt_noWhiteLine_sepTiles_violet.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_joinTiles_blue.svg width=100 src=gen_bothTxt_WhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_joinTiles_pink.svg width=100 src=gen_bothTxt_WhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_joinTiles_red.svg width=100 src=gen_bothTxt_WhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_joinTiles_turquise.svg width=100 src=gen_bothTxt_WhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_joinTiles_violet.svg width=100 src=gen_bothTxt_WhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_sepTiles_blue.svg width=100 src=gen_bothTxt_WhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_sepTiles_pink.svg width=100 src=gen_bothTxt_WhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_sepTiles_red.svg width=100 src=gen_bothTxt_WhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_sepTiles_turquise.svg width=100 src=gen_bothTxt_WhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_bothTxt_WhiteLine_sepTiles_violet.svg width=100 src=gen_bothTxt_WhiteLine_sepTiles_violet.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_joinTiles_blue.svg width=100 src=gen_justrc3_noWhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_joinTiles_pink.svg width=100 src=gen_justrc3_noWhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_joinTiles_red.svg width=100 src=gen_justrc3_noWhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_joinTiles_turquise.svg width=100 src=gen_justrc3_noWhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_joinTiles_violet.svg width=100 src=gen_justrc3_noWhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_sepTiles_blue.svg width=100 src=gen_justrc3_noWhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_sepTiles_pink.svg width=100 src=gen_justrc3_noWhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_sepTiles_red.svg width=100 src=gen_justrc3_noWhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_sepTiles_turquise.svg width=100 src=gen_justrc3_noWhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_justrc3_noWhiteLine_sepTiles_violet.svg width=100 src=gen_justrc3_noWhiteLine_sepTiles_violet.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_joinTiles_blue.svg width=100 src=gen_justrc3_WhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_joinTiles_pink.svg width=100 src=gen_justrc3_WhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_joinTiles_red.svg width=100 src=gen_justrc3_WhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_joinTiles_turquise.svg width=100 src=gen_justrc3_WhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_joinTiles_violet.svg width=100 src=gen_justrc3_WhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_sepTiles_blue.svg width=100 src=gen_justrc3_WhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_sepTiles_pink.svg width=100 src=gen_justrc3_WhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_sepTiles_red.svg width=100 src=gen_justrc3_WhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_sepTiles_turquise.svg width=100 src=gen_justrc3_WhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_justrc3_WhiteLine_sepTiles_violet.svg width=100 src=gen_justrc3_WhiteLine_sepTiles_violet.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_joinTiles_blue.svg width=100 src=gen_noTxt_noWhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_joinTiles_pink.svg width=100 src=gen_noTxt_noWhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_joinTiles_red.svg width=100 src=gen_noTxt_noWhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_joinTiles_turquise.svg width=100 src=gen_noTxt_noWhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_joinTiles_violet.svg width=100 src=gen_noTxt_noWhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_sepTiles_blue.svg width=100 src=gen_noTxt_noWhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_sepTiles_pink.svg width=100 src=gen_noTxt_noWhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_sepTiles_red.svg width=100 src=gen_noTxt_noWhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_sepTiles_turquise.svg width=100 src=gen_noTxt_noWhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_noTxt_noWhiteLine_sepTiles_violet.svg width=100 src=gen_noTxt_noWhiteLine_sepTiles_violet.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_joinTiles_blue.svg width=100 src=gen_noTxt_WhiteLine_joinTiles_blue.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_joinTiles_pink.svg width=100 src=gen_noTxt_WhiteLine_joinTiles_pink.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_joinTiles_red.svg width=100 src=gen_noTxt_WhiteLine_joinTiles_red.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_joinTiles_turquise.svg width=100 src=gen_noTxt_WhiteLine_joinTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_joinTiles_violet.svg width=100 src=gen_noTxt_WhiteLine_joinTiles_violet.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_sepTiles_blue.svg width=100 src=gen_noTxt_WhiteLine_sepTiles_blue.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_sepTiles_pink.svg width=100 src=gen_noTxt_WhiteLine_sepTiles_pink.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_sepTiles_red.svg width=100 src=gen_noTxt_WhiteLine_sepTiles_red.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_sepTiles_turquise.svg width=100 src=gen_noTxt_WhiteLine_sepTiles_turquise.svg></img>
|
|
||||||
<img alt=gen_noTxt_WhiteLine_sepTiles_violet.svg width=100 src=gen_noTxt_WhiteLine_sepTiles_violet.svg></img>
|
|
||||||
</body></html>
|
|
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 79 KiB |