blob: 2ab36a67775cba2b5ed5c7bd442e51abf4f09924 (
plain)
1
2
3
4
5
6
7
8
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)
|