UNPKG

chess-image-generator

Version:

Generate images based on various forms of chess notation.

40 lines (31 loc) 644 B
const cols = 'abcdefgh'; const white = 'PBNRQK'; const black = 'pbnrqk'; const defaultSize = 480; const defaultLight = 'rgb(181, 136, 99)'; const defaultDark = 'rgb(240, 217, 181)'; const deafultStyle = 'merida'; const filePaths = { wp: 'WhitePawn', bp: 'BlackPawn', wb: 'WhiteBishop', bb: 'BlackBishop', wn: 'WhiteKnight', bn: 'BlackKnight', wr: 'WhiteRook', br: 'BlackRook', wq: 'WhiteQueen', bq: 'BlackQueen', wk: 'WhiteKing', bk: 'BlackKing', }; module.exports = { cols, white, black, defaultSize, defaultLight, defaultDark, deafultStyle, filePaths, };