diff options
Diffstat (limited to 'render.js')
-rw-r--r-- | render.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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'; |