6.8301-Project/configs/gen_colors.py
2024-04-12 19:09:21 -04:00

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)