From 88babb1e271baca1d94e8504ead674168f142601 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Mon, 30 Jul 2018 22:51:26 +0200 Subject: [PATCH] Rename palette "256_dyes_palette.png", and generate directly in-place with gen_palette script --- gen_palette.py | 2 +- init.lua | 2 +- ..._dyes_palette_2.png => 256_dyes_palette.png} | Bin 380 -> 380 bytes textures/256_dyes_palette_1.png | Bin 432 -> 0 bytes 4 files changed, 2 insertions(+), 2 deletions(-) rename textures/{256_dyes_palette_2.png => 256_dyes_palette.png} (65%) delete mode 100644 textures/256_dyes_palette_1.png diff --git a/gen_palette.py b/gen_palette.py index 4f2329a..a0a9d65 100755 --- a/gen_palette.py +++ b/gen_palette.py @@ -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))) diff --git a/init.lua b/init.lua index 636255c..54e45ce 100644 --- a/init.lua +++ b/init.lua @@ -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, diff --git a/textures/256_dyes_palette_2.png b/textures/256_dyes_palette.png similarity index 65% rename from textures/256_dyes_palette_2.png rename to textures/256_dyes_palette.png index 1e39799dd1d78b0002b28478f65a05bc3da15c3a..cc7703f74745593d0aec9aeb81a1289e7efe47e7 100644 GIT binary patch delta 29 jcmeyv^oMDJ7UQjr+K!9@O!xoIVgLe9S3j3^P6O{P!xdC6Zy$O5so539Mo@lPDkT$azpjxOvk}QbudvKip5Cg zyi)HZJMCWHh+B72+R37my|j}&2-C=fX=H*&^_rR+R{v5T5bY2g)VKdpAI{Vr^?m