Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { AssetPath string Resizer draw.Scaler BoardSize int PieceRatio float64 Inverted bool }
Options holds all possible rendering options for customization
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is responsible for rendering the board, pieces, rank/file, and tile highlights
func NewRendererFromFEN ¶
NewRendererFromFEN prepares a renderer for use with given FEN string
func (*Renderer) SetCheckTile ¶
SetCheckTile - Sets the check tile
func (*Renderer) SetLastMove ¶
SetLastMove - Sets the last move
type Tile ¶
type Tile int8
Tile represents a specific position of a tile on a chess board
func TileFromAN ¶
TileFromAN will attempt to get a tile by its algebraic notation (ie: "e5")
Click to show internal directories.
Click to hide internal directories.