Pregled mogućnosti HTML5 jezika

3D tekst sa senkom

<script>
var canvas=document.getElementById("myCanvas");
var context=canvas.getContext("2d");
context.font = "40pt Courier New";
context.fillStyle = "green";
context.textAlign = "center";
context.textBaseline = "middle";
ispisi3d(context, "3D Tekst", canvas.width / 2, 75, 7);
function ispisi3d(context, text, x, y, textDepth){
var n;
for (n = 0; n < textDepth; n++) {
context.fillText(text, x - n, y - n); }
context.fillStyle = "#5E97FF";
context.shadowColor = "green";
context.shadowBlur = 10;
context.shadowOffsetX = textDepth + 5;
context.shadowOffsetY = textDepth + 5;
context.fillText(text, x - n, y - n); }
</script>

      Realizacija koda: