}}
}}
+let x=100, y=100, size=40;
+ctx.beginPath();
+ctx.moveTo(x + size * Math.cos(0), y + size * Math.sin(0));
+for (let side=0; side < 7; side++) {
+ ctx.lineTo(x + size * Math.cos(side * 2 * Math.PI / 6), y + size * Math.sin(side * 2 * Math.PI / 6));
+}
+ctx.fillStyle = "#333333";
+ctx.fill();
+
var img = new Image();
img.onload = function() {
ctx.drawImage(img, 0, 0, 60, 60);
}
img.src = "public/images/pieces/wb.svg";
-
</script>
</body>