Merge updated Nether portals, https://git.minetest.land/Wuzzy/MineClone2/issues/804
[MineClone/MineClone2.git] / tools / create_texture__mcl_particles_nether_portal.py
blob162186eb2dc2eaedd63e188673cb937260cf76fe
1 import png
3 s = [
4 '0000010',
5 '0101100',
6 '0010111',
7 '0101010',
8 '1010111',
9 '0001100',
10 '0010100',
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), (0xcf,0x00,0xcf,0xe0)]
18 w = png.Writer(len(s[0]), len(s), palette=palette, bitdepth=1)
19 f = open('mcl_particles_nether_portal.png', 'wb')
20 w.write(f, s)