Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

draw text in js

function draw() {
  var ctx = document.getElementById('canvas').getContext('2d');
  ctx.font = '48px serif';
  ctx.fillText('Hello world', 10, 50);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #draw #text #js
ADD COMMENT
Topic
Name
3+5 =