From 5073e03b6ab4458dccb2c158aefbee623f999ef9 Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Fri, 25 Aug 2023 21:55:37 -0500 Subject: [PATCH] text poc --- front/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/index.js b/front/index.js index aeb29e9..f891afe 100644 --- a/front/index.js +++ b/front/index.js @@ -25,6 +25,10 @@ async function init() { const render = () => { instance.exports.frame_entry(); ctx.putImageData(image, 0, 0); + ctx.font = '84px sans-serif' + ctx.textBaseline = 'top' + ctx.textAlign = 'left'; + ctx.fillText("demo",12,12); requestAnimationFrame(render); }