forked from Reload/techage_modpack
21 lines
890 B
Python
21 lines
890 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from PIL import Image
|
|
|
|
colors = [
|
|
"000000", "000055", "0000aa", "0000ff", "550000", "550055", "5500aa", "5500ff",
|
|
"aa0000", "aa0055", "aa00aa", "aa00ff", "ff0000", "ff0055", "ff00aa", "ff00ff",
|
|
"005500", "005555", "0055aa", "0055ff", "555500", "555555", "5555aa", "5555ff",
|
|
"aa5500", "aa5555", "aa55aa", "aa55ff", "ff5500", "ff5555", "ff55aa", "ff55ff",
|
|
"00aa00", "00aa55", "00aaaa", "00aaff", "55aa00", "55aa55", "55aaaa", "55aaff",
|
|
"aaaa00", "aaaa55", "aaaaaa", "aaaaff", "ffaa00", "ffaa55", "ffaaaa", "ffaaff",
|
|
"00ff00", "00ff55", "00ffaa", "00ffff", "55ff00", "55ff55", "55ffaa", "55ffff",
|
|
"aaff00", "aaff55", "aaffaa", "aaffff", "ffff00", "ffff55", "ffffaa", "ffffff",
|
|
]
|
|
|
|
for idx,color in enumerate(colors):
|
|
img = Image.new('RGB', (1,1), color="#"+color)
|
|
img.save("textures/px"+str(idx+1)+".png")
|
|
|