From 1c7f403f2978bd880b094bbe51a76aeb3c76f592 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 25 Jan 2017 17:49:00 -0500 Subject: [PATCH] add "split" palette for mods that need facedir + param2 color --- init.lua | 17 +++++++++++++++++ textures/unifieddyes_palette_aquas.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_blues.png | Bin 0 -> 101 bytes textures/unifieddyes_palette_cyans.png | Bin 0 -> 101 bytes textures/unifieddyes_palette_greens.png | Bin 0 -> 101 bytes textures/unifieddyes_palette_greys.png | Bin 0 -> 98 bytes textures/unifieddyes_palette_limes.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_magentas.png | Bin 0 -> 101 bytes textures/unifieddyes_palette_oranges.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_reds.png | Bin 0 -> 101 bytes textures/unifieddyes_palette_redviolets.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_skyblues.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_violets.png | Bin 0 -> 99 bytes textures/unifieddyes_palette_yellows.png | Bin 0 -> 101 bytes 14 files changed, 17 insertions(+) create mode 100644 textures/unifieddyes_palette_aquas.png create mode 100644 textures/unifieddyes_palette_blues.png create mode 100644 textures/unifieddyes_palette_cyans.png create mode 100644 textures/unifieddyes_palette_greens.png create mode 100644 textures/unifieddyes_palette_greys.png create mode 100644 textures/unifieddyes_palette_limes.png create mode 100644 textures/unifieddyes_palette_magentas.png create mode 100644 textures/unifieddyes_palette_oranges.png create mode 100644 textures/unifieddyes_palette_reds.png create mode 100644 textures/unifieddyes_palette_redviolets.png create mode 100644 textures/unifieddyes_palette_skyblues.png create mode 100644 textures/unifieddyes_palette_violets.png create mode 100644 textures/unifieddyes_palette_yellows.png diff --git a/init.lua b/init.lua index 880d2df..7817b3a 100644 --- a/init.lua +++ b/init.lua @@ -39,6 +39,23 @@ else S = function(s) return s end end +unifieddyes.hue_to_idx = { + red = 2, + orange = 3, + yellow = 4, + lime = 5, + green = 6, + aqua = 7, + cyan = 8, + skyblue = 9, + blue = 10, + violet = 11, + magenta = 12, + redviolet = 13, + + grey = 1 +} + -- helper functions for other mods that use this one -- code borrowed from homedecor diff --git a/textures/unifieddyes_palette_aquas.png b/textures/unifieddyes_palette_aquas.png new file mode 100644 index 0000000000000000000000000000000000000000..85dcab522fb67820b7f68c276e6bc4719367aba9 GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQd*uajv*Y^lmGnx|G(a?O^xk! y^L|O0w{s<;!u(P%?E2RK@YdF7o vcEA1q1|Z~K!SG+JPW!)zKf`|!d$IpsNrJs9qGdOM`WQT2{an^LB{Ts5eJUV^ literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_greys.png b/textures/unifieddyes_palette_greys.png new file mode 100644 index 0000000000000000000000000000000000000000..1fa529237e92578abef13b38e511b9c51aa0f7dd GIT binary patch literal 98 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQktGFjv*Y^Sr0M_GAQscZ#=$V xZ9zEqY;HcCDJd$P2QD2kyR~T7j^~UY7&X@O|4XnlyARaF;OXk;vd$@?2>?Aq8+!l% literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_limes.png b/textures/unifieddyes_palette_limes.png new file mode 100644 index 0000000000000000000000000000000000000000..ebfd703f9762898c8c508f27e6772d5a4c39a79c GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQd*uajv*Y^lmGk&f+{w*wtDur wk}_{{CDhiwN=VqZ>RiFsTc&K=!VmE<{1fG^`>cLHAE=AL)78&qol`;+0AQpb^#A|> literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_magentas.png b/textures/unifieddyes_palette_magentas.png new file mode 100644 index 0000000000000000000000000000000000000000..7c398b79ec4266cc9363843313107eb224167805 GIT binary patch literal 101 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQaYY4jv*Y^85J4s{b&3S1pk1N xN38ZS*f}^ctZH1ra82U|!}S~27+#6IW)KeHpL)ZV?Ez39gQu&X%Q~loCIBIw9>M?s literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_oranges.png b/textures/unifieddyes_palette_oranges.png new file mode 100644 index 0000000000000000000000000000000000000000..0986014cc88de67a9b4ebd84670d4bc4edc48786 GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQd*uajv*Y^lmGk&0p1>-b_p5D vH?lI4VZJMqcN|-BxZvw8(Kd6QMLY~FD|j1b>!{2J>SFM8^>bP0l+XkKAtfGO literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_reds.png b/textures/unifieddyes_palette_reds.png new file mode 100644 index 0000000000000000000000000000000000000000..85b8e5a55032d550a164b970b22646cfec290de8 GIT binary patch literal 101 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQaYY4jv*Y^85J4s{b%?O0t^iQ v57^uO|G#9(|CK;?y_V+xP$2CfEb>2Kx8QmQpDp`<`WQT2{an^LB{Ts5mVP0h literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_redviolets.png b/textures/unifieddyes_palette_redviolets.png new file mode 100644 index 0000000000000000000000000000000000000000..76e79e464ad97d93da5eeee7906fe01d1cc808c0 GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQd*uajv*Y^lmGnx|G%E?7+YKO yw;rBtetkUIua_IdT>N*u;O{HmHt{4L9)?eiy!Gq!7P7(8A5T-G@yGywqpUmfEB literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_violets.png b/textures/unifieddyes_palette_violets.png new file mode 100644 index 0000000000000000000000000000000000000000..f71b90f863a496ca61857a9734af61e79a0ce63a GIT binary patch literal 99 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQd*uajv*Y^lmGk&0xLH*wzPI; vp1yBoJi$`ejSMnkQ+E{o)nZ=!A)1Zhi8oKfY&M%Zpe_baS3j3^P6L49H literal 0 HcmV?d00001 diff --git a/textures/unifieddyes_palette_yellows.png b/textures/unifieddyes_palette_yellows.png new file mode 100644 index 0000000000000000000000000000000000000000..862ac4f0caddd455f5f6ea515ae58487a3d44fcf GIT binary patch literal 101 zcmeAS@N?(olHy`uVBq!ia0vp^96-#-!3HEBGrV^OQaYY4jv*Y^85J4s{b&3S1PlyJ y3ZmR~TNu7Gn76#y9acr@9ePAA_f>pUXO@geCy_^BvOw literal 0 HcmV?d00001