From b70ae30fda51b07d090418ea0669bad355c21714 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sat, 23 Apr 2022 22:01:51 +0300 Subject: [PATCH] Create MCL5 own mcl_end_crystal_beam texture --- .../mcl_end/textures/mcl_end_crystal_beam.png | Bin 635 -> 939 bytes tools/create_texture__mcl_end_crystal_beam.py | 28 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tools/create_texture__mcl_end_crystal_beam.py diff --git a/mods/ITEMS/mcl_end/textures/mcl_end_crystal_beam.png b/mods/ITEMS/mcl_end/textures/mcl_end_crystal_beam.png index a671de7ac406fed4f9df08e76219704ead7ed3dc..42b05a17f02a11d03d4adca72b689bbbe590c2b1 100644 GIT binary patch delta 929 zcmV;S177_51gi&-7=Ho-0002TJRaQu000b7OjJbx00960aQ}ecfdAk5?RGW*000DZ zQchC<%*@Q*yB}u&00T-%L_t(|oF!B}Z&XJVJ@bJX$Kz%2Zn1??2CpMoBE^_ZL1BsU zItnOSq%9~wX|)s*zi;UIhe`(9<0@yE5;a#zgqj(+ui6if@CaPB8rqr~O2>mlgh)~d#qy#rBcC9A zS7q z`kqmT1l$1Q$tv7)tjwdv0cca6LGuQee+7(*slVr+Cv|*{(VA7m_&Y};8RMa1=vd?{ z%7csP(qE)p3BS}svW!SHWB41~Q%#!y){3q{7ibsm?J4dZJ43u2T+p$WA5}`v)D?;c zXhS>VvxHniS$`5wX+XmZbVN_$MdSn2HS*n{U={9+L^G#?S6wVTw_sXWji45vVApBR zN*Ye&9g^?BT`EvhB!+0fsiE8@6|z|D@jBzMVB;-wfy9R8aG!FMOJ8sX?~yk2p_(xh zQHyA0JccuPrP&<72i79Y21SGC7cP>&Tg7?0DsW{MO@GlfC=)KlG&|>9U@NSzF|&tB z(APQ2m}p@aC ztRpU{Z_$;3W^hc_2~qPS%wiabtI#{6n}%k(9?Q_tp$VzyO~OaWn@m0loAAkpLXJ-` zIpa3@JZEi7S>wJ&HBbfpK7S0RM)MAOg3>b7^$TZHo0;ezfCpz54i7ax1TWKmjD0&07*qo IM6N<$f?zcnq5uE@ diff --git a/tools/create_texture__mcl_end_crystal_beam.py b/tools/create_texture__mcl_end_crystal_beam.py new file mode 100644 index 000000000..ab2166714 --- /dev/null +++ b/tools/create_texture__mcl_end_crystal_beam.py @@ -0,0 +1,28 @@ +import png +from random import randrange + +w, h = 16, 256; + +s = [[int(0) for c in range(w)] for c in range(h)] + +def drawpixel(x, y, t): + if (x >= 0) and (x < w) and (y >= 0) and (y < h): + s[y][x] = t + +# R, G, B, Alpha (0xFF = opaque): +palette=[ + (0x00,0x00,0x00,0x00), + (0xFF,0xFF,0x70,0xCC), + (0xFF,0x80,0xDF,0xCC), + (0x80,0xFF,0xDF,0xCC) +] + +for x in range(w): + for y in range(h): + n = randrange(4) + if n == 1: + drawpixel(x, y, randrange(3) + 1) + +w = png.Writer(len(s[0]), len(s), palette=palette, bitdepth=2) +f = open('mcl_end_crystal_beam.png', 'wb') +w.write(f, s)