<title>Stylization</title>
<canvas id="canvas" width="6000" height="4000"></canvas>
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext("2d");
var gradient = ctx.createLinearGradient(0, 100, 0, 200);
gradient.addColorStop(0.0, 'rgba(0, 0, 255, 1)');
gradient.addColorStop(0.3, 'rgba(128, 0, 255, 0.6)');
gradient.addColorStop(0.6, 'rgba(0, 0, 255, 0.4)');
gradient.addColorStop(1.0, 'rgba(0, 255, 0, 0.2)');
ctx.fillStyle = gradient;
ctx.font = "italic 30pt Arial";
ctx.fillText("Выполнил Вакуленко Виктор", 200, 180);
ctx.font = 'bold 30px sans-serif';
ctx.strokeStyle = "#F00";
ctx.shadowColor = "#F00";
ctx.strokeText("Лабораторная работа", 200, 130);
var img = document.createElement('img');
img.onload = function () {
ctx.fillStyle = ctx.createPattern(img, 'repeat');
ctx.font = 'bold 50px sans-serif';
ctx.fillText("ЛНУ имени Тараса Шевченка", 200, 80);
img.src = 'http://img0.liveinternet.ru/images/attach/c/5/86/357/86357092_4581.jpg';