Rename palette "256_dyes_palette.png", and generate directly in-place with gen_palette script
This commit is contained in:
parent
334e08a69d
commit
88babb1e27
@ -61,7 +61,7 @@ for g in range(16):
|
|||||||
palette = (palette_raw * 255 + 0.5).astype(np.uint8)
|
palette = (palette_raw * 255 + 0.5).astype(np.uint8)
|
||||||
print(palette)
|
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 = open("colors.dat", "wb")
|
||||||
color_list.write(compress(bytes(palette)))
|
color_list.write(compress(bytes(palette)))
|
||||||
|
2
init.lua
2
init.lua
@ -40,7 +40,7 @@ minetest.register_craftitem("256_dyes:dye", {
|
|||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "256_dyes_dye.png",
|
inventory_image = "256_dyes_dye.png",
|
||||||
wield_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,
|
stack_max = 99,
|
||||||
color = "#400000",
|
color = "#400000",
|
||||||
on_use = change_variation,
|
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 |
Loading…
x
Reference in New Issue
Block a user