Merge updated Nether portals, https://git.minetest.land/Wuzzy/MineClone2/issues/804
[MineClone/MineClone2.git] / tools / create_texture__mcl_particles_nether_portal_t.py
blobf06198c82142613ac401fc6ed8acb3b7f554ce0f
1 import png
3 s = [
4 '0010010',
5 '0101100',
6 '0010111',
7 '0101010',
8 '1010111',
9 '0101100',
10 '0010101',
13 s = [[int(c) for c in row] for row in s]
15 # R, G, B, Alpha (0xFF = opaque):
16 palette=[(0x00,0x00,0x00,0x00), (0x9f,0x00,0xdf,0x92)]
18 w = png.Writer(len(s[0]), len(s), palette=palette, bitdepth=1)
19 f = open('mcl_particles_nether_portal_t.png', 'wb')
20 w.write(f, s)