Skip to main content

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


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.3.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zxp2boriel-0.1.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file zxp2boriel-0.1.3.tar.gz.

File metadata

  • Download URL: zxp2boriel-0.1.3.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for zxp2boriel-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6e47c9cb53787d3e024f9654e50a50a26ef76dd4bdb78d077e37793273629e13
MD5 e1fb1ddf2ad1fea34a64e10bc9a40fc8
BLAKE2b-256 50fa1659d6c92bbbfe1a383cdc6e2271c307f7a774ed56f19cb2d5f5e3dc7f90

See more details on using hashes here.

File details

Details for the file zxp2boriel-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: zxp2boriel-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for zxp2boriel-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 508af648e00f7d279b41be779d6c873e79cc9fedee4eb0e3a9d258585652290a
MD5 47ff42bc5e3ddee7f4593dd5dc814157
BLAKE2b-256 400a53dbab053209d92132b56936d69a67685c7aecf7e81b5c588f1e989d9ef6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page