Expand description
shogi-img is a library for generating images that visualize the position in Shogi (Japanese chess).
It takes shogi_core::PartialPosition as input and returns an image corresponding to that position as image::RgbaImage.
There are several selectable styles for the board and pieces used in image generation.
Re-exports§
pub use image;pub use shogi_core;
Structs§
- Generator
- Image generator.
Enums§
- Board
Style - Values to specify the style of the board.
- Coordinate
Style - Values to specify the style of the coordinates.
- Highlight
Square - Hightlight mode for last moved pieces.
- Pieces
Style - Values to specify the style of the pieces.
Traits§
Functions§
- pos2img
- A simple function to generate an image from a position using the default styles.