Convert ZX-Paintbrush (.zxp) files to Boriel Basic
Project description
zxp2boriel
A Python tool to convert ZX-Paintbrush (.zxp) sprite files into Boriel Basic DIM array declarations.
Installation
pip install zxp2boriel
Usage
zxp2boriel --input <file.zxp> --width <pixels> --rows <rows> --cols <cols> --output <file.bas> --name <array_name>
Arguments
--input,-i: Input .zxp file path.--width,-w: Tile width in pixels (must be a multiple of 8).--rows,-r: Number of rows in the sprite sheet.--cols,-c: Number of columns in the sprite sheet.--output,-o: Output .bas file path.--name,-n: Name of the generated array variable.
Example
Convert a 16x16 sprite sheet with 3 rows and 16 columns:
zxp2boriel -i sprites.zxp -w 16 -r 3 -c 16 -o sprites.bas -n sprites
This will generate a sprites.bas file containing:
Dim tiles(47, 31) As Ubyte => { ... }
License
AGPL-v3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zxp2boriel-0.1.0.tar.gz
(14.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zxp2boriel-0.1.0.tar.gz.
File metadata
- Download URL: zxp2boriel-0.1.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32abba61420bcd79b16ee65e1887e1dfa84233acea03d7565009c8e48aa85946
|
|
| MD5 |
72b50dd5566a58c2279f03a67acc4036
|
|
| BLAKE2b-256 |
69584228d63bb9cd20a3ddb1f1a724b1c27ab1cf9dd44ed53f9f29073c986492
|
File details
Details for the file zxp2boriel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zxp2boriel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7660b79ca016df590cd6dfb4827c0ecc5db042d630a63cc3ddb6fe5f610144
|
|
| MD5 |
222a0fd7142f60a522668263e12b6cad
|
|
| BLAKE2b-256 |
172f5dbb911e10ce984257b285ab126bc36b6634696979818326a8ea3ba5a81a
|