Add raw texture files. Add additional output sizes; half size and quater size
This commit is contained in:
parent
4c05f01548
commit
186f4e2054
3 changed files with 5 additions and 0 deletions
BIN
assets/card-texture-1.png
Normal file
BIN
assets/card-texture-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 866 KiB |
BIN
assets/card-texture-2.png
Normal file
BIN
assets/card-texture-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 MiB |
5
main.py
5
main.py
|
|
@ -78,7 +78,12 @@ def draw_mask(img, color):
|
|||
|
||||
def save_img(img, color, symbol):
|
||||
print('Created card {} {}'.format(color, symbol))
|
||||
sizes = ['50', '25']
|
||||
img.save(filename='output/card-{}-{}.png'.format(color, symbol))
|
||||
img.resize(int(img.width / 2), int(img.height / 2))
|
||||
for size in sizes:
|
||||
img.resize(int(img.width / 2), int(img.height / 2))
|
||||
img.save(filename='output/card-{}-{}-{}.png'.format(color, symbol, size))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue