Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

chess-image

Command-line tool for creating images of chess positions

View on Codeberg

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

chess-image

Overview

Simple command line tool that makes a picture of a chess position.

Usage

pascal
chess-image --position="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -" --size=320 --output=position.png
chess-image --position="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -" --size=320 --output=position.png --font=adventurer
chess-image --position="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -" --size=320 --output=position.png --font=adventurer --coordinates
chess-image -p "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -" -s 320 -o position.png -f adventurer -c

Compilation

chess-image is a Lazarus project, using the BGRABitmap library.

If you don't have Lazarus, binaries for Linux and Windows are available here.

Credit

chess-image uses:

  • Chess Montreal font by Gary Katch
  • Chess Adventurer font by Armando Hernandez Marroquin
  • Mont Blanc font

alt text