Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<body>
<canvas id="canvas"></canvas>
<script>
var c = canvas.getContext('2d');
c.font = "8pt sans-serif";
c.textAlign = "center";
c.textBaseline = "middle";
c.fillStyle = "white";
c.fillText("Test Text", canvas.width / 2, canvas.height / 2);
</script>
</body>
</html>