Recommend this page to a friend! |
Classes of Massimiliano Arione | PHP Chess Engine | docs/output_imagine.md | Download |
|
DownloadOutput with ImagineThis option requires Imagine library and one extension between GD and Imagick. You need to provide an instance of Imagine, and a path of images for pieces.
Names of such images need to match a color/name code.
For example, a black pawn image must be named
<img src="https://user-images.githubusercontent.com/179866/112304837-411be280-8c9e-11eb-8333-c2489f9bef05.png"> If you want to also display coordinates, you'll also need a font file, named Just pass a fourth parameter
<img src="https://user-images.githubusercontent.com/179866/113125801-4685a980-9217-11eb-9e0a-0acf54c4ea88.png"> A complete list of arguments:
In this directory, you can find an utility script, named get-resources.sh, that downloads all pieces images from Wikimedia, plus a free font to use. |