Final
This commit is contained in:
RobinNixon
2020-12-10 13:50:02 +00:00
parent ec6f6b8d61
commit 3aeeb4477e
847 changed files with 0 additions and 0 deletions
-27
View File
@@ -1,27 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Filling Text</title>
<script src='OSC.js'></script>
</head>
<body>
<canvas id='mycanvas' width='800' height='160'></canvas>
<script>
canvas = O('mycanvas')
context = canvas.getContext('2d')
context.font = 'bold 140px Times'
context.textBaseline = 'top'
image = new Image()
image.src = 'wicker.jpg'
image.onload = function()
{
pattern = context.createPattern(image, 'repeat')
context.fillStyle = pattern
context.fillText( 'WickerpediA', 0, 0)
context.strokeText('WickerpediA', 0, 0)
}
</script>
</body>
</html>