Computer mode in rules section almost OK
[vchess.git] / _tmp / hexaboard_test.html
similarity index 76%
rename from hexaboard_test.html
rename to _tmp/hexaboard_test.html
index 800e189..86abc2e 100644 (file)
@@ -37,13 +37,21 @@ for(var a=0;a<8;a++) {
        }}
 }}
 
+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>