Horje

Example of Drawing a Text JavaScript in HTML Canvas Graphics

Follow the Example
index.html
Example: HTML
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.font = "30px Arial";
ctx.fillText("Hello World", 10, 50);
</script> 

Output should be:

Example of Drawing a Text JavaScript in HTML Canvas Graphics




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Canvas Graphics
Uploaded by:
Admin