6.8301-Project/configs/gen_colors.py

10 lines
285 B
Python
Raw Normal View History

2024-04-12 23:09:21 +00:00
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)