summaryrefslogtreecommitdiff
path: root/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'render.js')
-rw-r--r--render.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/render.js b/render.js
index 5fde9d1..126d6be 100644
--- a/render.js
+++ b/render.js
@@ -99,7 +99,15 @@ export function drawMark(ctx, mark, x, y) {
ctx.lineWidth = 0.1;
ctx.beginPath();
- ctx.arc(x, y, 0.4, 0, 2*Math.PI);
+ if (mark === '+') {
+ ctx.arc(x, y, 0.4, 0, 2*Math.PI);
+ } else {
+ ctx.moveTo(x+0.4, y);
+ ctx.lineTo(x, y+0.4);
+ ctx.lineTo(x-0.4, y);
+ ctx.lineTo(x, y-0.4);
+ ctx.closePath();
+ }
ctx.stroke();
ctx.textAlign = 'center';