Metadata-Version: 2.4
Name: zxp2gus
Version: 0.6
Summary: Convert ZX Paintbrush files to GuSprites ZXBasic code
Home-page: https://github.com/rtorralba/zxp2gus
Author: Raül Torralba
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: opencv-python
Requires-Dist: Pillow
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# zxp2gus

Simple command to convert ZX Paintbrush Images (zxp) into basic file for [Boriel's ZX Basic](https://zxbasic.readthedocs.io/en/docs/) and [GuSprites](https://github.com/gusmanb/GuSprites) sprite library

## Install

pip install zxp2gus

## Run

```bash
usage: zxp2gus [-h] [-t ITYPE] [-i INPUT] [-o OUTPUT_FOLDER] [-f FORMAT]

Process some arguments.

options:
  -h, --help            show this help message and exit
  -t ITYPE, --itype ITYPE
                        Type of input
  -i INPUT, --input INPUT
                        Input file
  -o OUTPUT_FOLDER, --output OUTPUT
                        Output file
  -f FORMAT, --format FORMAT
                        Format of the output
```

You can convert zxp of type tiles or sprites to bin form import into ZX Basic program or PNG to use it in other programas like Tiled for example

### Examples:

#### Bin

```bash
zxp2gus -t tiles -i assets/map/tiles.zxp -o output -f bin
```

```bash
zxp2gus -t sprites -i assets/map/sprites.zxp -o output -f bin
```

### PNG

```bash
zxp2gus -t tiles -i assets/map/tiles.zxp -o assets/map/ -f png
```

```bash
zxp2gus -t sprites -i assets/map/sprites.zxp -o assets/map/ -f png
```
