10 lines
285 B
Python
10 lines
285 B
Python
|
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)
|