Chess Boardinator
This project generates a chess board image from a given input image by replacing specific colors with new ones. The output image is saved to a file specified by the user. The project supports PNG and SVG formats.
Usage
boardinator --show --output_path cool_image.png --color_dict '{"(237,238,209)":"(0,0,255)","(119,153,82)":"(0,0,0)"}'
Arguments
--input_path: path to the input image file (default:./assets/chesscom.png)--output_path: path to the output image file (required)--color_dict: dictionary of color replacements in string format (default:{})--show: flag to show the modified image
Installation
This project requires Python 3.11 or later and can be installed using Poetry.
- Clone the repository:
git clone https://github.com/example/chess-boardinator.git
cd chess-boardinator
- Install dependencies using Poetry:
poetry install
- Run the project:
poetry run boardinator --show --output_path cool_image.png --color_dict '{"(237,238,209)":"(0,0,255)","(119,153,82)":"(0,0,0)"}'
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for boardinator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boardinator-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| boardinator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / boardinator-0.1.0.tar.gz
| Download URL | boardinator-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
617eb1217dea8f858e85481d0d15e79d8855c4e99843babc97f1024e593d7f5f
|
|
BLAKE2b-256 checksum How to use checksums |
6e69d506312b74646240669d7935eea687ff3b955dc7f0bd78bf7cf8524d082b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure
|
Release files / boardinator-0.1.0-py3-none-any.whl
| Download URL | boardinator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acf2446fed7ddbdb0e8c5834724137e50e7e2bc687ce95b7e27bd44373ce8344
|
|
BLAKE2b-256 checksum How to use checksums |
db46fac36d16369032208bf7ad676f8b117a2bd32eea52be39261e2044948dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure
|