Skip to main content

A tool made to generate custom Chess.com boards from the terminal.

Project description

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.

  1. Clone the repository:
git clone https://github.com/example/chess-boardinator.git
cd chess-boardinator
  1. Install dependencies using Poetry:
poetry install
  1. 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.

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

boardinator-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

boardinator-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file boardinator-0.1.0.tar.gz.

File metadata

  • Download URL: boardinator-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure

File hashes

Hashes for boardinator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 617eb1217dea8f858e85481d0d15e79d8855c4e99843babc97f1024e593d7f5f
MD5 cb02c8afe208b04f7532aa7d1c9fb5e5
BLAKE2b-256 6e69d506312b74646240669d7935eea687ff3b955dc7f0bd78bf7cf8524d082b

See more details on using hashes here.

File details

Details for the file boardinator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: boardinator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1036-azure

File hashes

Hashes for boardinator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acf2446fed7ddbdb0e8c5834724137e50e7e2bc687ce95b7e27bd44373ce8344
MD5 925bd90d5f826f6383a41424bbe70098
BLAKE2b-256 db46fac36d16369032208bf7ad676f8b117a2bd32eea52be39261e2044948dcc

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