Skip to content

Commit

Permalink
Add makefile; Apply color to zero on simplified; Use arguments in py
Browse files Browse the repository at this point in the history
script;
  • Loading branch information
b3nj5m1n committed Jul 7, 2020
1 parent 00c79f6 commit d4e6eb6
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 28 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

all:
python parser.py "fire"
python parser.py "lime"
python parser.py "frozen"
python parser.py "magenta"
python parser.py "pinky"
6 changes: 3 additions & 3 deletions fire_extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cap value": null,
"color empty": "#D00D21",
"color empty descendant": "#E31A1C",
"color zero": false,
"color zero": true,
"columns": [
{
"absolute": true,
Expand Down Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#D00D21",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#D00D21",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions fire_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#D00D21",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#D00D21",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
6 changes: 3 additions & 3 deletions frozen_extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cap value": null,
"color empty": "#0063DE",
"color empty descendant": "#257CE3",
"color zero": false,
"color zero": true,
"columns": [
{
"absolute": true,
Expand Down Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#0063DE",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#0063DE",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions frozen_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#0063DE",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#0063DE",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
6 changes: 3 additions & 3 deletions lime_extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cap value": null,
"color empty": "#1E6823",
"color empty descendant": "#378F36",
"color zero": false,
"color zero": true,
"columns": [
{
"absolute": true,
Expand Down Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#1E6823",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#1E6823",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions lime_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#1E6823",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#1E6823",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
6 changes: 3 additions & 3 deletions magenta_extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cap value": null,
"color empty": "#7A0177",
"color empty descendant": "#AE017E",
"color zero": false,
"color zero": true,
"columns": [
{
"absolute": true,
Expand Down Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#7A0177",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#7A0177",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions magenta_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#7A0177",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#7A0177",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
3 changes: 2 additions & 1 deletion parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import sys

scheme = "magenta"
scheme = sys.argv[1]
schemes = ""
with open("colorschemes.json", "r", encoding="utf-8") as file:
schemes = json.loads(file.read())
Expand Down
6 changes: 3 additions & 3 deletions pinky_extended.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"cap value": null,
"color empty": "#9d003f",
"color empty descendant": "#d80056",
"color zero": false,
"color zero": true,
"columns": [
{
"absolute": true,
Expand Down Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#9d003f",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#9d003f",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions pinky_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "#9d003f",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "#9d003f",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down
4 changes: 2 additions & 2 deletions template_simplified.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,12 @@
"subdeck": true
}
],
"default column color": "red",
"default column color": "color_6",
"do color empty": true,
"do color marked": true,
"dot in numbers": true,
"end symbol": ";",
"ended marked background color": "red",
"ended marked background color": "color_6",
"given up symbol": "/",
"hide values of parent decks when subdecks are shown": false,
"marked background color": "null",
Expand Down

0 comments on commit d4e6eb6

Please sign in to comment.