comparison tools/cut_sheet.py @ 8:2c4fed8baed9

art update, persistent sound setting, tower selling as double action
author ark
date 2026-10-19 13:37 +0200
parents 3dd5b745fa08
children
comparison
equal deleted inserted replaced
7:4fd2da999ba4 8:2c4fed8baed9
1 """ 1 """
2 cut the sprites out of a scanned drawing sheet and write them to art/. 2 cut the sprites out of a scanned drawing sheet and write them to art/.
3 3
4 python3 tools/cut_sheet.py art/source_sheet_2.jpg 4 python3 tools/cut_sheet.py art/art_sources/source_sheet_2.jpg
5 5
6 the boxes below are set by hand for source_sheet_2.jpg, in sheet pixels, at 6 the boxes below are set by hand for source_sheet_2.jpg, in sheet pixels, at
7 the sheet's own scale. each box holds one drawing with an inked outline. the 7 the sheet's own scale. each box holds one drawing with an inked outline. the
8 largest connected outline in a box is the drawing; other ink in the box, such 8 largest connected outline in a box is the drawing; other ink in the box, such
9 as a neighbour's edge, is dropped. the inside of the outline keeps the 9 as a neighbour's edge, is dropped. the inside of the outline keeps the