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()
Metadata
Release files for fen2pil 0.3.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 | |
|---|---|---|---|
| fen2pil-0.3.0.tar.gz | 67.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fen2pil-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.8 kB
Release files / fen2pil-0.3.0.tar.gz
| Download URL | fen2pil-0.3.0.tar.gz |
|---|---|
| Size | 67.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27fe84866ad74ed4bd06c43e8d1b6b9e7541446fd9e1c4cac81bbcd351a0b3cb
|
|
BLAKE2b-256 checksum How to use checksums |
f9db1bb0353374fecef36569d5b05fb0b61c33b30c8386a1b8b327c2887ce2b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / fen2pil-0.3.0-py3-none-any.whl
| Download URL | fen2pil-0.3.0-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abe03dd84cd37c3420ce8a42b226337713753f93fe853dc7d4fbb2415552b4fc
|
|
BLAKE2b-256 checksum How to use checksums |
89afdee6d48ed1034093bd77953f5138bcab5461ac9944e358d79a4b02806b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|