Rename palette "256_dyes_palette.png", and generate directly in-place with gen_palette script

master
Gael-de-Sailly 2018-07-30 22:51:26 +02:00
parent 334e08a69d
commit 88babb1e27
4 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ for g in range(16):
palette = (palette_raw * 255 + 0.5).astype(np.uint8)
print(palette)
imageio.imwrite("palette.png", palette.reshape(16,16,3))
imageio.imwrite("textures/256_dyes_palette.png", palette.reshape(16,16,3))
color_list = open("colors.dat", "wb")
color_list.write(compress(bytes(palette)))

View File

@ -40,7 +40,7 @@ minetest.register_craftitem("256_dyes:dye", {
groups = {},
inventory_image = "256_dyes_dye.png",
wield_image = "256_dyes_dye.png",
palette = "256_dyes_palette_2.png",
palette = "256_dyes_palette.png",
stack_max = 99,
color = "#400000",
on_use = change_variation,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 B