
Kontur i wypełnienie tekstu
Kontur i wypełnienie ustawiamy ustawiając właściwości strokeStyle i fillStyle .
Listing
var cv = document.getElementById("canvas");
var ctx = cv.getContext("2d");
ctx.font = 'bold 60px Cambria';
ctx.fillStyle = 'red';
ctx.fillText('Smok', 10, 70);
ctx.strokeStyle = 'black';
ctx.strokeText('Smok', 10, 150);
ctx.fillText('Smok', 10, 220);
ctx.strokeText('Smok', 10, 220);
