From 0aadd43e65930d0f6dbe54073bfa325d4b1c9456 Mon Sep 17 00:00:00 2001 From: legion Date: Sun, 13 Dec 2020 11:44:32 +0100 Subject: [PATCH] Add logoColorGenerator and svg sources --- .../logoGen/bothTxt_WhiteLine_joinTiles.svg | 1478 +++++++++++++++++ static/logoGen/bothTxt_WhiteLine_sepTiles.svg | 1478 +++++++++++++++++ .../logoGen/bothTxt_noWhiteLine_joinTiles.svg | 1478 +++++++++++++++++ .../logoGen/bothTxt_noWhiteLine_sepTiles.svg | 1478 +++++++++++++++++ static/logoGen/colortables.json | 38 + static/logoGen/generate.py | 32 + .../logoGen/justrc3_WhiteLine_joinTiles.svg | 1478 +++++++++++++++++ static/logoGen/justrc3_WhiteLine_sepTiles.svg | 1478 +++++++++++++++++ .../logoGen/justrc3_noWhiteLine_joinTiles.svg | 1478 +++++++++++++++++ .../logoGen/justrc3_noWhiteLine_sepTiles.svg | 1478 +++++++++++++++++ static/logoGen/noTxt_WhiteLine_joinTiles.svg | 1478 +++++++++++++++++ static/logoGen/noTxt_WhiteLine_sepTiles.svg | 1478 +++++++++++++++++ .../logoGen/noTxt_noWhiteLine_joinTiles.svg | 1478 +++++++++++++++++ static/logoGen/noTxt_noWhiteLine_sepTiles.svg | 1478 +++++++++++++++++ 14 files changed, 17806 insertions(+) create mode 100644 static/logoGen/bothTxt_WhiteLine_joinTiles.svg create mode 100644 static/logoGen/bothTxt_WhiteLine_sepTiles.svg create mode 100644 static/logoGen/bothTxt_noWhiteLine_joinTiles.svg create mode 100644 static/logoGen/bothTxt_noWhiteLine_sepTiles.svg create mode 100644 static/logoGen/colortables.json create mode 100644 static/logoGen/generate.py create mode 100644 static/logoGen/justrc3_WhiteLine_joinTiles.svg create mode 100644 static/logoGen/justrc3_WhiteLine_sepTiles.svg create mode 100644 static/logoGen/justrc3_noWhiteLine_joinTiles.svg create mode 100644 static/logoGen/justrc3_noWhiteLine_sepTiles.svg create mode 100644 static/logoGen/noTxt_WhiteLine_joinTiles.svg create mode 100644 static/logoGen/noTxt_WhiteLine_sepTiles.svg create mode 100644 static/logoGen/noTxt_noWhiteLine_joinTiles.svg create mode 100644 static/logoGen/noTxt_noWhiteLine_sepTiles.svg diff --git a/static/logoGen/bothTxt_WhiteLine_joinTiles.svg b/static/logoGen/bothTxt_WhiteLine_joinTiles.svg new file mode 100644 index 0000000..a5d7c7c --- /dev/null +++ b/static/logoGen/bothTxt_WhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/bothTxt_WhiteLine_sepTiles.svg b/static/logoGen/bothTxt_WhiteLine_sepTiles.svg new file mode 100644 index 0000000..a4705eb --- /dev/null +++ b/static/logoGen/bothTxt_WhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/bothTxt_noWhiteLine_joinTiles.svg b/static/logoGen/bothTxt_noWhiteLine_joinTiles.svg new file mode 100644 index 0000000..a48ca2d --- /dev/null +++ b/static/logoGen/bothTxt_noWhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/bothTxt_noWhiteLine_sepTiles.svg b/static/logoGen/bothTxt_noWhiteLine_sepTiles.svg new file mode 100644 index 0000000..c8d075a --- /dev/null +++ b/static/logoGen/bothTxt_noWhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/colortables.json b/static/logoGen/colortables.json new file mode 100644 index 0000000..0c81046 --- /dev/null +++ b/static/logoGen/colortables.json @@ -0,0 +1,38 @@ +{ + "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"] + ] + +} diff --git a/static/logoGen/generate.py b/static/logoGen/generate.py new file mode 100644 index 0000000..6addf1b --- /dev/null +++ b/static/logoGen/generate.py @@ -0,0 +1,32 @@ +#!/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(srcFN.split(".")[0]+"_"+name+".svg", "w") as fo: + fo.write(repl) + +if __name__ == "__main__": + genAll(sys.argv[1], sys.argv[2]) + + diff --git a/static/logoGen/justrc3_WhiteLine_joinTiles.svg b/static/logoGen/justrc3_WhiteLine_joinTiles.svg new file mode 100644 index 0000000..3cb4764 --- /dev/null +++ b/static/logoGen/justrc3_WhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/justrc3_WhiteLine_sepTiles.svg b/static/logoGen/justrc3_WhiteLine_sepTiles.svg new file mode 100644 index 0000000..fd98804 --- /dev/null +++ b/static/logoGen/justrc3_WhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/justrc3_noWhiteLine_joinTiles.svg b/static/logoGen/justrc3_noWhiteLine_joinTiles.svg new file mode 100644 index 0000000..8ce30df --- /dev/null +++ b/static/logoGen/justrc3_noWhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/justrc3_noWhiteLine_sepTiles.svg b/static/logoGen/justrc3_noWhiteLine_sepTiles.svg new file mode 100644 index 0000000..9a76093 --- /dev/null +++ b/static/logoGen/justrc3_noWhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/noTxt_WhiteLine_joinTiles.svg b/static/logoGen/noTxt_WhiteLine_joinTiles.svg new file mode 100644 index 0000000..31e516a --- /dev/null +++ b/static/logoGen/noTxt_WhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/noTxt_WhiteLine_sepTiles.svg b/static/logoGen/noTxt_WhiteLine_sepTiles.svg new file mode 100644 index 0000000..9537e6e --- /dev/null +++ b/static/logoGen/noTxt_WhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/noTxt_noWhiteLine_joinTiles.svg b/static/logoGen/noTxt_noWhiteLine_joinTiles.svg new file mode 100644 index 0000000..426f2c8 --- /dev/null +++ b/static/logoGen/noTxt_noWhiteLine_joinTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/logoGen/noTxt_noWhiteLine_sepTiles.svg b/static/logoGen/noTxt_noWhiteLine_sepTiles.svg new file mode 100644 index 0000000..675f90c --- /dev/null +++ b/static/logoGen/noTxt_noWhiteLine_sepTiles.svg @@ -0,0 +1,1478 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +