November 2011
Intermediate to advanced
348 pages
7h 2m
English
If 2D text doesn't get you jazzed, you might consider drawing 3D text instead. Although the HTML5 canvas API doesn't directly provide us with a means for creating 3D text, we can certainly create a custom draw3dText() method using the existing API.

Follow these steps to create 3D text:
window.onload = function(){
canvas = document.getElementById("myCanvas");
context = canvas.getContext("2d");
context.font = "40pt Calibri";
context.fillStyle = "black";// align text horizontally center context.textAlign = "center"; // align text vertically ...
Read now
Unlock full access