Convert Forsyth–Edwards Notation (FEN) to a 2D chessboard PIL image
Project description
fen2pil
Convert Forsyth–Edwards Notation (FEN) to a 2D chessboard PIL image.
from fen2pil import draw
fen = "r1bqkb1r/pppp1ppp/2n2n2/4p3/2B1P3/3P1N2/PPP2PPP/RNBQ1RK1 w Qkq - 0 1"
pil_image = draw.transform_fen_pil(
fen=fen,
board_size=480,
light_color=(255, 253, 208),
dark_color=(76, 153, 0)
)
pil_image.show()
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
fen2pil-0.3.0.tar.gz
(67.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fen2pil-0.3.0-py3-none-any.whl
(27.5 kB
view details)
File details
Details for the file fen2pil-0.3.0.tar.gz.
File metadata
- Download URL: fen2pil-0.3.0.tar.gz
- Upload date:
- Size: 67.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27fe84866ad74ed4bd06c43e8d1b6b9e7541446fd9e1c4cac81bbcd351a0b3cb
|
|
| MD5 |
64982b0bfbab3807787d98925a1887df
|
|
| BLAKE2b-256 |
f9db1bb0353374fecef36569d5b05fb0b61c33b30c8386a1b8b327c2887ce2b3
|
File details
Details for the file fen2pil-0.3.0-py3-none-any.whl.
File metadata
- Download URL: fen2pil-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abe03dd84cd37c3420ce8a42b226337713753f93fe853dc7d4fbb2415552b4fc
|
|
| MD5 |
123282bc9aa7c007703a10ab552ed5ce
|
|
| BLAKE2b-256 |
89afdee6d48ed1034093bd77953f5138bcab5461ac9944e358d79a4b02806b6d
|