Answers for "how to place text at custom position on canvas"

0

how to place text at custom position on canvas

<!doctype html>
<html>
<head>
<body>
<canvas></canvas>
<script>
var canvas=document.querySelector('canvas');
var context=canvas.getContext(2d);
context.textAlign = 'center';
         context.fillStyle = 'blue';
      context.fillText('Helllo Word!', 10, 50);
    </script>
    </body>
    </head>
    </html>
Posted by: Guest on May-26-2020

Code answers related to "how to place text at custom position on canvas"

Code answers related to "Javascript"

Browse Popular Code Answers by Language