Skip to content

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

License

Notifications You must be signed in to change notification settings

coldenate/boardinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages