Crate shogi_img

Crate shogi_img 

Source
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§

BoardStyle
Values to specify the style of the board.
CoordinateStyle
Values to specify the style of the coordinates.
HighlightSquare
Hightlight mode for last moved pieces.
PiecesStyle
Values to specify the style of the pieces.

Traits§

AsPosition

Functions§

pos2img
A simple function to generate an image from a position using the default styles.