@dartbot/dartboard
Version:
Dartboard implemented as a vanilla web component
15 lines • 514 B
JavaScript
import { drawNumbers } from './draw-numbers';
import { drawSectors } from './draw-sectors';
import { drawWire } from './draw-wire';
/**
* Draw a dartboard to the canvas
* @param board Board dimensions
* @param theme Theme to style the board
* @param context Canvas context to draw the board to
*/
export const drawBoard = (board, theme, context) => {
drawSectors(board, theme, context);
drawWire(board, theme, context);
drawNumbers(board, theme, context);
};
//# sourceMappingURL=draw-board.js.map