aboutsummaryrefslogtreecommitdiff
path: root/configs/gen_colors.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/gen_colors.py')
-rw-r--r--configs/gen_colors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/gen_colors.py b/configs/gen_colors.py
new file mode 100644
index 0000000..2ab36a6
--- /dev/null
+++ b/configs/gen_colors.py
@@ -0,0 +1,9 @@
+import itertools
+import json
+
+
+color_vals = [0, 85, 170, 255] # giving all color channels the same equally-spaced values
+color_combs = {i: comb for i, comb in enumerate(itertools.product(color_vals, repeat=3))}
+
+with open("colors_64_v0.json", "w") as f:
+ json.dump(color_combs, f)