<canvas id="my-canvas" width="650px" height="500px">
</canvas>
let myCanvas = document.getElementById('my-canvas');
let ctx = myCanvas.getContext('2d');
ctx.font = '60px Arial';
ctx.fillStyle = 'cyan';
ctx.strokeStyle = 'blue';
ctx.fillText('Hello World!', 100, 150);
ctx.strokeText('Hello World!', 100, 220);
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.