<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Canvas в HTML5</title>
</head>
<body>
<div id='test'></div>
<script>
image = new Image()
image.onload = function()
{
pattern = context.createPattern(image, 'repeat')
context.fillStyle = pattern
context.fillText('WickerpediA', 0, 0)
context.strokeText('WickerpediA', 0, 0)
document.getElementById('test').appendChild(pattern)
}
image.src = '1.jpg'
</script>
</body>
</html> |