Skip to main content
Deno 2 is finally here 🎉️
Learn more

Beta Chess Diagrams

This software is made with ❤️ by thechessnerd team.

Create .png chess diagrams with the help of Deno canvas API.

import { Position } from './mod.ts';

const p = new Position();
p.place('k', 'b', 'a1');
p.place('q', 'w', 'd5');
p.place('n', 'b', 'f6');
p.place('r', 'w', 'h8');

await Deno.writeFile("image.png", await p.picture("w"));

Preview

The rights of the Alpha Chess Set belong to Eric Bentzen and have been legally purchased under the name of Zachary Saine. Do not use the chess set if you do not own the rights.