From e6eb59b08dfcf6f666df14a46d62c06c1a4c0058 Mon Sep 17 00:00:00 2001 From: "guillaume.bonabau" Date: Mon, 13 May 2024 11:15:39 +0200 Subject: [PATCH] json format --- conwayRule.json | 16 ++++++++++++++++ gasRule.json | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 conwayRule.json create mode 100644 gasRule.json diff --git a/conwayRule.json b/conwayRule.json new file mode 100644 index 0000000..34bb7a3 --- /dev/null +++ b/conwayRule.json @@ -0,0 +1,16 @@ +[{ + "value" : 1, + "color" : [255,255,255], + "conditionCountNear" : [2,3], + "conditionHighestNear" : null, + "ifValue" : 1, + "elseValue" : 0 +}, +{ + "value" : 0, + "color" : [0,0,0], + "conditionCountNear" : [3], + "conditionHighestNear" : null, + "ifValue" : 1, + "elseValue" : 0 +}] \ No newline at end of file diff --git a/gasRule.json b/gasRule.json new file mode 100644 index 0000000..58b3c5a --- /dev/null +++ b/gasRule.json @@ -0,0 +1,48 @@ +[{ + "value" : 5, + "color" : [255,255,255], + "conditionCountNear" : null, + "conditionHighestNear" : null, + "ifValue" : 4, + "elseValue" : null +}, +{ + "value" : 4, + "color" : [204,204,204], + "conditionCountNear" : null, + "conditionHighestNear" : null, + "ifValue" : 3, + "elseValue" : null +}, +{ + "value" : 3, + "color" : [153,153,153], + "conditionCountNear" : null, + "conditionHighestNear" : null, + "ifValue" : 2, + "elseValue" : null +}, +{ + "value" : 2, + "color" : [102,102,102], + "conditionCountNear" : null, + "conditionHighestNear" : null, + "ifValue" : 1, + "elseValue" : null +}, +{ + "value" : 1, + "color" : [51,51,51], + "conditionCountNear" : null, + "conditionHighestNear" : null, + "ifValue" : 0, + "elseValue" : null +}, +{ + "value" : 0, + "color" : [0,0,0], + "conditionCountNear" : null, + "conditionHighestNear" : [5], + "ifValue" : 5, + "elseValue" : 0 +}] \ No newline at end of file