Skip to contents

Render an 8x8 board with pieces placed from a symbol grid

Usage

render_position(symbols, size = 512L, set_dir = app_sys("svg"))

Arguments

symbols

Character vector of 64 symbols, row-major, top row first, with "." for an empty square.

size

Board side length in pixels.

set_dir

Directory holding the 12 piece SVGs (defaults to bundled cburnett).

Value

A magick image of the rendered board.