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); }